diff --git a/io/mmap.c b/io/mmap.c index f9383e5..12f3fff 100644 --- a/io/mmap.c +++ b/io/mmap.c @@ -4,10 +4,10 @@ * All Rights Reserved. */ -#include "command.h" -#include "input.h" #include #include +#include "command.h" +#include "input.h" #include "init.h" #include "io.h" @@ -20,6 +20,14 @@ static cmdinfo_t mwrite_cmd; static cmdinfo_t mremap_cmd; #endif /* HAVE_MREMAP */ +#ifndef HAVE_MAP_SYNC +#define MAP_SYNC 0 +#define MAP_SHARED_VALIDATE 0 +#else +#include +#include +#endif /* HAVE_MAP_SYNC */ + mmap_region_t *maptable; int mapcount; mmap_region_t *mapping;