diff options
author | Guido van Rossum <guido@python.org> | 2000-09-25 13:16:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-25 13:16:15 (GMT) |
commit | 4b36e6bde1f44d5b792f9276ee6a80985dda843d (patch) | |
tree | a5aeabebeec786bb2a4c350c7a7c030add2d59a0 /Modules | |
parent | cfcea4921865a922744dc168dde5eaccde8fe50b (diff) | |
download | cpython-4b36e6bde1f44d5b792f9276ee6a80985dda843d.zip cpython-4b36e6bde1f44d5b792f9276ee6a80985dda843d.tar.gz cpython-4b36e6bde1f44d5b792f9276ee6a80985dda843d.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-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 467f110..cbb2452 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> |