Skip to content

Commit c193676

Browse files
committed
define targets for generic BSD and oracle machines
1 parent 05ecaa4 commit c193676

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/ghc/filesystem.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
#ifndef GHC_FILESYSTEM_H
4141
#define GHC_FILESYSTEM_H
4242

43+
// #define BSD manifest constant only in
44+
// sys/param.h
45+
#ifndef _WIN32
46+
#include <sys/param.h>
47+
#endif
48+
4349
#ifndef GHC_OS_DETECTED
4450
#if defined(__APPLE__) && defined(__MACH__)
4551
#define GHC_OS_MACOS
@@ -54,6 +60,10 @@
5460
#elif defined(_WIN32)
5561
#define GHC_OS_WINDOWS
5662
#define GHC_OS_WIN32
63+
#elif defined(__svr4__)
64+
#define GHC_OS_SYS5R4
65+
#elif defined(BSD)
66+
#define GHC_OS_BSD
5767
#else
5868
#error "Operating system currently not supported!"
5969
#endif
@@ -106,6 +116,7 @@
106116
#include <sys/time.h>
107117
#include <sys/types.h>
108118
#include <unistd.h>
119+
#include <limits.h>
109120
#ifdef GHC_OS_ANDROID
110121
#include <android/api-level.h>
111122
#endif

0 commit comments

Comments
 (0)