diff options
author | Anthony Green <green@moxielogic.com> | 2011-02-09 14:56:23 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2011-02-09 14:56:23 -0500 |
commit | 747d6c32d4abb07c10c3a1f93579c3929aaa2487 (patch) | |
tree | 6b4ace11a33808458c52c19f881ac0cdedb11a41 /src | |
parent | eab6e41cde382aa07de6c011d514a14c0d62eb47 (diff) | |
download | libffi-747d6c32d4abb07c10c3a1f93579c3929aaa2487.tar.gz |
Add Interix support
Diffstat (limited to 'src')
-rw-r--r-- | src/closures.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/closures.c b/src/closures.c index 39067ac..b8392c8 100644 --- a/src/closures.c +++ b/src/closures.c @@ -198,11 +198,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(__OS2__)) || defined (__CYGWIN__) +#if !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || 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(__OS2__)) || defined (__CYGWIN__) */ +#endif /* !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || defined (__CYGWIN__) || defined(__INTERIX) */ #define mmap dlmmap #define munmap dlmunmap @@ -212,7 +212,7 @@ static int dlmunmap(void *, size_t); #undef mmap #undef munmap -#if !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || defined (__CYGWIN__) +#if !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || defined (__CYGWIN__) || defined(__INTERIX) /* A mutex used to synchronize access to *exec* variables in this file. */ static pthread_mutex_t open_temp_exec_file_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -527,7 +527,7 @@ segment_holding_code (mstate m, char* addr) } #endif -#endif /* !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || defined (__CYGWIN__) */ +#endif /* !(defined(X86_WIN32) || defined(X86_WIN64) || defined(__OS2__)) || 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 |