From e24c850818d77c04aa8a6a9d2850134c76eb756b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 May 1998 13:51:26 +0000 Subject: [PATCH] need a ifdef around some mmap code --- util.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.34.1