From 4c3b98565410c5017afea8f41b7a56322a7a66db Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Thu, 24 Feb 2022 18:52:21 +0000 Subject: [PATCH] Win32: Add symlink to fake 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 --- Makefile | 2 +- include/mman/sys/mman.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 include/mman/sys/mman.h diff --git a/Makefile b/Makefile index a1d63365..6a83f46b 100644 --- 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 index 00000000..1c111c30 --- /dev/null +++ b/include/mman/sys/mman.h @@ -0,0 +1 @@ +../../../deps/mman/mman.h \ No newline at end of file -- 2.39.5