]> granicus.if.org Git - python/commitdiff
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
authorGuido van Rossum <guido@python.org>
Mon, 25 Sep 2000 13:16:15 +0000 (13:16 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 25 Sep 2000 13:16:15 +0000 (13:16 +0000)
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.

Modules/mmapmodule.c

index 467f110ead6459f63035b10643fad2759d63ae84..cbb2452906fdfcb6fc4414b81ffa0cec2c6c82d6 100644 (file)
 #include <unistd.h>
 #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>
 #include <sys/types.h>