projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e475e70
)
Patch from Lorenzo M. Catucci:
author
Andrew M. Kuchling
<amk@amk.ca>
Sun, 18 Jun 2000 19:06:49 +0000
(19:06 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/Modules/mmapmodule.c
b/Modules/mmapmodule.c
index 4b18466d280b14950d2307732454504138ee09d5..5e8c56263531d7a453f492811591e51de15a3599 100644
(file)
--- 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 <Python.h>
#ifndef MS_WIN32