63 lines
2.4 KiB
Diff
63 lines
2.4 KiB
Diff
|
diff --git a/configure b/configure
|
||
|
index d849c7a..fed97e2 100755
|
||
|
--- a/configure
|
||
|
+++ b/configure
|
||
|
@@ -12180,7 +12180,7 @@ case "$host" in
|
||
|
i?86-*-freebsd* | i?86-*-openbsd*)
|
||
|
TARGET=X86_FREEBSD; TARGETDIR=x86
|
||
|
;;
|
||
|
- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
|
||
|
+ i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-interix*)
|
||
|
TARGET=X86_WIN32; TARGETDIR=x86
|
||
|
# All mingw/cygwin/win32 builds require this for sharedlib
|
||
|
AM_LTLDFLAGS="-no-undefined"
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 6314a6a..4e178a2 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -80,7 +80,7 @@ case "$host" in
|
||
|
i?86-*-freebsd* | i?86-*-openbsd*)
|
||
|
TARGET=X86_FREEBSD; TARGETDIR=x86
|
||
|
;;
|
||
|
- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
|
||
|
+ i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-interix*)
|
||
|
TARGET=X86_WIN32; TARGETDIR=x86
|
||
|
# All mingw/cygwin/win32 builds require this for sharedlib
|
||
|
AM_LTLDFLAGS="-no-undefined"
|
||
|
diff --git a/src/closures.c b/src/closures.c
|
||
|
index bc087d9..65bf6a9 100644
|
||
|
--- a/src/closures.c
|
||
|
+++ b/src/closures.c
|
||
|
@@ -193,11 +193,11 @@ static int dlmalloc_trim(size_t) MAYBE_UNUSED;
|
||
|
static size_t dlmalloc_usable_size(void*) MAYBE_UNUSED;
|
||
|
static void dlmalloc_stats(void) MAYBE_UNUSED;
|
||
|
|
||
|
-#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__)
|
||
|
+#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX)
|
||
|
/* Use these for mmap and munmap within dlmalloc.c. */
|
||
|
static void *dlmmap(void *, size_t, int, int, int, off_t);
|
||
|
static int dlmunmap(void *, size_t);
|
||
|
-#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) */
|
||
|
+#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX) */
|
||
|
|
||
|
#define mmap dlmmap
|
||
|
#define munmap dlmunmap
|
||
|
@@ -207,7 +207,7 @@ static int dlmunmap(void *, size_t);
|
||
|
#undef mmap
|
||
|
#undef munmap
|
||
|
|
||
|
-#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__)
|
||
|
+#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX)
|
||
|
|
||
|
#if FFI_MMAP_EXEC_SELINUX
|
||
|
|
||
|
@@ -545,7 +545,7 @@ segment_holding_code (mstate m, char* addr)
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
-#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) */
|
||
|
+#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX) */
|
||
|
|
||
|
/* Allocate a chunk of memory with the given size. Returns a pointer
|
||
|
to the writable address, and sets *CODE to the executable
|