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

Guido van Rossum python-dev@python.org
Mon, 25 Sep 2000 06:16:21 -0700


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

Modified Files:
	mmapmodule.c 
Log Message:
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
undefined.  ccording to MvL, this is safe: the MS_SYNC flag means that
msync() returns when all I/O operations are scheduled; without it, it
waits until they are complete, which is acceptable behavior.


Index: mmapmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mmapmodule.c,v
retrieving revision 2.22
retrieving revision 2.23
diff -C2 -r2.22 -r2.23
*** mmapmodule.c	2000/07/30 02:46:26	2.22
--- mmapmodule.c	2000/09/25 13:16:15	2.23
***************
*** 33,37 ****
--- 33,43 ----
  #include <sys/mman.h>
  #include <sys/stat.h>
+ 
+ #ifndef MS_SYNC
+ /* This is missing e.g. on SunOS 4.1.4 */
+ #define MS_SYNC 0
  #endif
+ 
+ #endif /* UNIX */
  
  #include <string.h>