diff --git a/libaf/af_export.c b/libaf/af_export.c index 571507019d..95f3c979f9 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -15,7 +15,9 @@ #include "config.h" #include +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include #include diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c index 8c37139ec8..f99599fea2 100644 --- a/libvo/vo_bl.c +++ b/libvo/vo_bl.c @@ -27,7 +27,9 @@ #include #include #include +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include "config.h" diff --git a/loader/ext.c b/loader/ext.c index 4ef4580bdc..4984861590 100644 --- a/loader/ext.c +++ b/loader/ext.c @@ -18,7 +18,9 @@ #include #endif #include +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include #include diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 5154d9ec76..babf9e71a5 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -17,13 +17,16 @@ * http://svn.mplayerhq.hu/mplayer/trunk/ */ +#include "config.h" #include "ldt_keeper.h" #include #include #include #include +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include #include diff --git a/loader/module.c b/loader/module.c index 9c43248217..e316cf0f37 100644 --- a/loader/module.c +++ b/loader/module.c @@ -26,7 +26,9 @@ #include #include #include +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include "wine/windef.h" diff --git a/loader/win32.c b/loader/win32.c index 62219a3fba..388dcc97d5 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -68,7 +68,9 @@ for DLL to know too much about its environment. #include #endif +#ifdef HAVE_SYS_MMAN_H #include +#endif #include "osdep/mmap_anon.h" #if HAVE_VSSCANF