backend: fix #includes with include-what-you-use (#2371)

Also fix a PARENT_SCOPE warning when building the backend.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-05-31 16:34:54 -04:00
committed by GitHub
parent 8ba7ef4832
commit 636307160e
14 changed files with 87 additions and 50 deletions

View File

@@ -2,17 +2,21 @@
#define SYSINFO_H
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include <sstream>
#include <string>
#if defined(__linux__)
#include <unistd.h>
# include <unistd.h>
#elif defined(__APPLE__)
#include <sys/types.h>
#include <sys/sysctl.h>
# include <sys/types.h>
# include <sys/sysctl.h>
#elif defined(_WIN32)
#include <windows.h>
# define WIN32_LEAN_AND_MEAN
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
#endif
static long long getSystemTotalRAMInBytes()