[Python-checkins] CVS: python/dist/src/Modules mmapmodule.c,2.14,2.15

A.M. Kuchling python-dev@python.org
Sun, 18 Jun 2000 12:06:51 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17425

Modified Files:
	mmapmodule.c 
Log Message:
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.


Index: mmapmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mmapmodule.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** mmapmodule.c	2000/06/18 14:51:21	2.14
--- mmapmodule.c	2000/06/18 19:06:49	2.15
***************
*** 17,20 ****
--- 17,25 ----
  */
  
+ #ifdef __linux__
+ #define _GNU_SOURCE  /* So we can get MREMAP_MAYMOVE defined when
+ 		        sys/mman.h is included */
+ #endif
+ 
  #include <Python.h>