diff --git a/osdep/mmap_anon.c b/osdep/mmap_anon.c index 484615311a..8bd7f308c7 100644 --- a/osdep/mmap_anon.c +++ b/osdep/mmap_anon.c @@ -2,6 +2,8 @@ * \file mmap_anon.c * \brief Provide a compatible anonymous space mapping function */ +#include "config.h" +#ifdef HAVE_SYS_MMAN_H #include #include @@ -62,3 +64,4 @@ void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset) return result; } +#endif /* HAVE_SYS_MMAN_H */