diff options
author | Guido van Rossum <guido@python.org> | 2000-09-25 13:16:15 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-25 13:16:15 +0000 |
commit | 4b36e6bde1f44d5b792f9276ee6a80985dda843d (patch) | |
tree | a5aeabebeec786bb2a4c350c7a7c030add2d59a0 | |
parent | cfcea4921865a922744dc168dde5eaccde8fe50b (diff) | |
download | cpython-git-4b36e6bde1f44d5b792f9276ee6a80985dda843d.tar.gz |
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.
-rw-r--r-- | Modules/mmapmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <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> |