diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index d0ee1a9..ba4302c 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -40,6 +40,12 @@ #ifndef GHC_FILESYSTEM_H #define GHC_FILESYSTEM_H +// #define BSD manifest constant only in +// sys/param.h +#ifndef _WIN32 +#include +#endif + #ifndef GHC_OS_DETECTED #if defined(__APPLE__) && defined(__MACH__) #define GHC_OS_MACOS @@ -54,6 +60,10 @@ #elif defined(_WIN32) #define GHC_OS_WINDOWS #define GHC_OS_WIN32 +#elif defined(__svr4__) +#define GHC_OS_SYS5R4 +#elif defined(BSD) +#define GHC_OS_BSD #else #error "Operating system currently not supported!" #endif @@ -106,6 +116,7 @@ #include #include #include +#include #ifdef GHC_OS_ANDROID #include #endif