From: Andrew Tridgell Date: Fri, 22 May 1998 13:51:26 +0000 (+0000) Subject: need a ifdef around some mmap code X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e24c850818d77c04aa8a6a9d2850134c76eb756b need a ifdef around some mmap code --- diff --git a/util.c b/util.c index efc9dafd..b94262f3 100644 --- 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) {