]> granicus.if.org Git - python/commitdiff
This local change was lost during the fixing of issue17192 to update
authorGregory P. Smith <greg@krypto.org>
Tue, 30 Apr 2013 07:05:25 +0000 (00:05 -0700)
committerGregory P. Smith <greg@krypto.org>
Tue, 30 Apr 2013 07:05:25 +0000 (00:05 -0700)
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)

Modules/_ctypes/libffi/src/dlmalloc.c

index 5c9f9c2d2398f04459709f49c1510ce053a6fa5c..2773953590e56f3421c4e809c2da27c39317bc48 100644 (file)
@@ -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__