mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
e475e70128
commit
ea34a84e54
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue