From 4b36e6bde1f44d5b792f9276ee6a80985dda843d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 25 Sep 2000 13:16:15 +0000 Subject: [PATCH] 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. --- Modules/mmapmodule.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 467f110ead6..cbb2452906f 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -32,8 +32,14 @@ #include #include #include + +#ifndef MS_SYNC +/* This is missing e.g. on SunOS 4.1.4 */ +#define MS_SYNC 0 #endif +#endif /* UNIX */ + #include #include