diff --git a/prism/defines.h b/prism/defines.h index 66c644939fdb1f..0abfa86e6685fe 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -15,7 +15,6 @@ #include #include #include -#include /** * We want to be able to use the PRI* macros for printing out integers, but on @@ -105,8 +104,13 @@ * If the target platform is POSIX or Windows, we can map a file in memory and * read it in a more efficient manner. */ -#if defined(_POSIX_MAPPED_FILES) || defined(_WIN32) +#ifdef _WIN32 # define PRISM_HAS_MMAP +#else +# include +# ifdef _POSIX_MAPPED_FILES +# define PRISM_HAS_MMAP +# endif #endif #endif