Patch from Lorenzo M. Catucci:
authorAndrew M. Kuchling <amk@amk.ca>
Sun, 18 Jun 2000 19:06:49 +0000 (19:06 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sun, 18 Jun 2000 19:06:49 +0000 (19:06 +0000)
I discovered the [MREMAP_MAYMOVE] symbol is only defined when _GNU_SOURCE is
defined; therefore, here is the change: if we are compiling for linux,
define _GNU_SOURCE before including mman.h, and all is done.

Modules/mmapmodule.c

index 4b18466d280b14950d2307732454504138ee09d5..5e8c56263531d7a453f492811591e51de15a3599 100644 (file)
  / ftp://squirl.nightmare.com/pub/python/python-ext.
 */
 
+#ifdef __linux__
+#define _GNU_SOURCE  /* So we can get MREMAP_MAYMOVE defined when
+                       sys/mman.h is included */
+#endif
+
 #include <Python.h>
 
 #ifndef MS_WIN32