From ea34a84e543ecf0a05ea34fe5b7d84cb1bcd437d Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 18 Jun 2000 19:06:49 +0000 Subject: Patch from Lorenzo M. Catucci: 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 4b18466..5e8c562 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -16,6 +16,11 @@ / 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 #ifndef MS_WIN32 -- cgit v0.12