diff options
author | Paul Cercueil | 2020-02-08 13:00:30 -0300 |
---|---|---|
committer | Paul Cercueil | 2020-02-08 13:00:30 -0300 |
commit | 1532f1b13b79ed49927e886e5d526bb27dc5927c (patch) | |
tree | 24948f5e90cc104369326239dcde2f73b8cb944c /deps/lightning | |
parent | 0adc619b5a5705d16cc6caea64951776ababbb96 (diff) | |
download | pcsx_rearmed-1532f1b13b79ed49927e886e5d526bb27dc5927c.tar.gz pcsx_rearmed-1532f1b13b79ed49927e886e5d526bb27dc5927c.tar.bz2 pcsx_rearmed-1532f1b13b79ed49927e886e5d526bb27dc5927c.zip |
Fix Linux build
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
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 |