diff options
Diffstat (limited to 'deps/lightning')
-rw-r--r-- | deps/lightning/lib/jit_memory.c | 6 | ||||
-rw-r--r-- | deps/lightning/lib/lightning.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/deps/lightning/lib/jit_memory.c b/deps/lightning/lib/jit_memory.c index e6b4c73..33b1c35 100644 --- a/deps/lightning/lib/jit_memory.c +++ b/deps/lightning/lib/jit_memory.c @@ -19,7 +19,11 @@ #include <lightning.h> #include <lightning/jit_private.h> -#include <mman.h> +#ifdef _WIN32 +# include <mman.h> +#else +# include <sys/mman.h> +#endif /* * Prototypes diff --git a/deps/lightning/lib/lightning.c b/deps/lightning/lib/lightning.c index 3f2ab40..507abb6 100644 --- a/deps/lightning/lib/lightning.c +++ b/deps/lightning/lib/lightning.c @@ -19,7 +19,11 @@ #include <lightning.h> #include <lightning/jit_private.h> -#include <mman.h> +#ifdef _WIN32 +# include <mman.h> +#else +# include <sys/mman.h> +#endif #if defined(__sgi) # include <fcntl.h> #endif |