From: Guido van Rossum Date: Mon, 25 Sep 2000 13:16:15 +0000 (+0000) Subject: For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's X-Git-Tag: v2.0b2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b36e6bde1f44d5b792f9276ee6a80985dda843d;p=python 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. --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 467f110ead..cbb2452906 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