about summary refs log tree commit diff
path: root/Src/Modules/mapfile.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-07-24 14:01:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-07-24 14:01:54 +0000
commit14810d6df13e0564a606b74e4c4e918e80862e25 (patch)
tree0e24a6c6b0226a90bdf8398ce94b60fdc9a87b0e /Src/Modules/mapfile.c
parentd6d4a3abfc84f0940e663cd69537789a039a7056 (diff)
downloadzsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.gz
zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.xz
zsh-14810d6df13e0564a606b74e4c4e918e80862e25.zip
zsh-3.1.6-test-3 dot-zsh-199907241534
Diffstat (limited to 'Src/Modules/mapfile.c')
-rw-r--r--Src/Modules/mapfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c
index 41cae80b8..31265c0de 100644
--- a/Src/Modules/mapfile.c
+++ b/Src/Modules/mapfile.c
@@ -143,6 +143,9 @@ setpmmapfile(Param pm, char *value)
 	 */
 	ftruncate(fd, len);
 	memcpy(mmptr, value, len);
+#ifndef MS_SYNC
+#define MS_SYNC 0
+#endif
 	msync(mmptr, len, MS_SYNC);
 	/*
 	 * Then we need to truncate again, since mmap() always maps complete