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
- handle no mmap for munmap
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
22ca8c2
..
537ec0b
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-91,8
+91,10
@@
char *map_ptr(char *buf,off_t offset,int len)
void unmap_file(char *buf,off_t len)
{
+#ifdef HAVE_MMAP
if (len > 0 && buf)
munmap(buf,len);
+#endif
map_fd = -1;
map_size = 0;
p_len = 0;