Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c61274
)
need a ifdef around some mmap code
author
Andrew Tridgell
<tridge@samba.org>
Fri, 22 May 1998 13:51:26 +0000
(13:51 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 22 May 1998 13:51:26 +0000
(13:51 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
efc9daf
..
b94262f
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-69,6
+69,7
@@
char *map_ptr(struct map_struct *map,OFF_T offset,int len)
if (len > (map->size-offset))
len = map->size-offset;
+#ifdef HAVE_MMAP
if (map->map) {
if (offset >= map->p_offset &&
offset+len <= map->p_offset+map->p_len) {
@@
-103,6
+104,7
@@
char *map_ptr(struct map_struct *map,OFF_T offset,int len)
return (map->map + (offset - map->p_offset));
}
}
+#endif
if (offset >= map->p_offset &&
offset+len <= map->p_offset+map->p_len) {