Kaydet (Commit) ea34a84e authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

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.
üst e475e701
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
/ ftp://squirl.nightmare.com/pub/python/python-ext. / 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> #include <Python.h>
#ifndef MS_WIN32 #ifndef MS_WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment