Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check for munmap as well as mmap. NextStep only has mmap in standard
[rsync/rsync.git]
/
rsync.h
diff --git
a/rsync.h
b/rsync.h
index
f98ca6a
..
7e2967b
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-142,8
+142,9
@@
#endif
#include <errno.h>
-#if
def HAVE_MMAP
+#if
defined(HAVE_MMAP) && defined(HAVE_MUNMAP)
#include <sys/mman.h>
+#define USE_MMAP 1
#endif
#ifdef HAVE_UTIME_H