diff --git a/src/zziplib-2-prefer-win32-mmap.patch b/src/zziplib-2-prefer-win32-mmap.patch new file mode 100644 index 00000000..3290ba09 --- /dev/null +++ b/src/zziplib-2-prefer-win32-mmap.patch @@ -0,0 +1,23 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +Contains ad hoc patches for cross building. + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Hopper262 +Date: Sat, 23 Mar 2019 19:50:51 -0400 +Subject: [PATCH 1/1] Prefer win32 mmap + + +diff --git a/zzip/__mmap.h b/zzip/__mmap.h +index 1111111..2222222 100644 +--- a/zzip/__mmap.h ++++ b/zzip/__mmap.h +@@ -18,7 +18,7 @@ + */ + + #ifdef _USE_MMAP +-#if defined ZZIP_HAVE_SYS_MMAN_H ++#if defined ZZIP_HAVE_SYS_MMAN_H && !defined WIN32 + #include + #define USE_POSIX_MMAP 1 + #elif defined ZZIP_HAVE_WINBASE_H || defined WIN32 diff --git a/src/zziplib.mk b/src/zziplib.mk index d58614e3..29e71536 100644 --- a/src/zziplib.mk +++ b/src/zziplib.mk @@ -25,7 +25,6 @@ define $(PKG)_BUILD # mman-win32 is only a partial implementation cd '$(1)' && ./configure \ $(MXE_CONFIGURE_OPTS) \ - --disable-mmap \ CFLAGS="-O -ggdb" \ PKG_CONFIG='$(TARGET)-pkg-config' $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= LDFLAGS="-no-undefined"