Win32: Add symlink to fake <sys/mman.h>
authorPaul Cercueil <paul@crapouillou.net>
Thu, 24 Feb 2022 18:52:21 +0000 (18:52 +0000)
committerPaul Cercueil <paul@crapouillou.net>
Thu, 24 Feb 2022 18:53:38 +0000 (18:53 +0000)
Add a symlink from include/mman/sys/mman.h to deps/mman/mman.h.

Then, Lightning can be tricked into using our mman.h without having to
modify the external mman-win32 repo.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Makefile
include/mman/sys/mman.h [new symlink]

index a1d6336..6a83f46 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,7 @@ OBJS += deps/lightning/lib/jit_disasm.o \
                deps/lightrec/recompiler.o \
                deps/lightrec/reaper.o
 ifeq ($(MMAP_WIN32),1)
-CFLAGS += -Ideps/mman
+CFLAGS += -Iinclude/mman
 OBJS += deps/mman/mman.o
 endif
 else ifeq "$(DYNAREC)" "ari64"
diff --git a/include/mman/sys/mman.h b/include/mman/sys/mman.h
new file mode 120000 (symlink)
index 0000000..1c111c3
--- /dev/null
@@ -0,0 +1 @@
+../../../deps/mman/mman.h
\ No newline at end of file