summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-04-30 00:05:25 -0700
committerGregory P. Smith <greg@krypto.org>2013-04-30 00:05:25 -0700
commitb1f5e4b63973b7502c877c3f9f7935437a359644 (patch)
tree5e9f29c20d3c8f11ba3696f7b0dc03e519d69038
parent6c5cd2e58e2dac632bb0a8d260594b4784341d1a (diff)
downloadcpython-b1f5e4b63973b7502c877c3f9f7935437a359644.tar.gz
This local change was lost during the fixing of issue17192 to update
libffi to 3.0.13. (i'm not sure if it is needed anymore but see issue 10309 for details which makes no mention of upstream; this change is already in 3.3 and 3.4 but may need reapplying to 2.7 as done here)
-rw-r--r--Modules/_ctypes/libffi/src/dlmalloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ctypes/libffi/src/dlmalloc.c b/Modules/_ctypes/libffi/src/dlmalloc.c
index 5c9f9c2d23..2773953590 100644
--- a/Modules/_ctypes/libffi/src/dlmalloc.c
+++ b/Modules/_ctypes/libffi/src/dlmalloc.c
@@ -457,6 +457,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K
#define LACKS_ERRNO_H
#define MALLOC_FAILURE_ACTION
#define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
+#elif !defined _GNU_SOURCE
+/* mremap() on Linux requires this via sys/mman.h
+ * See roundup issue 10309
+ */
+#define _GNU_SOURCE 1
#endif /* WIN32 */
#ifdef __OS2__