[MPlayer-cvslog] r26137 - in trunk: libaf/af_export.c libvo/vo_bl.c loader/ext.c loader/ldt_keeper.c loader/module.c loader/win32.c

diego subversion at mplayerhq.hu
Sat Mar 1 11:31:51 CET 2008


Author: diego
Date: Sat Mar  1 11:31:51 2008
New Revision: 26137

Log:
Wrap '#include <sys/mman.h>' in HAVE_SYS_MMAN_H.


Modified:
   trunk/libaf/af_export.c
   trunk/libvo/vo_bl.c
   trunk/loader/ext.c
   trunk/loader/ldt_keeper.c
   trunk/loader/module.c
   trunk/loader/win32.c

Modified: trunk/libaf/af_export.c
==============================================================================
--- trunk/libaf/af_export.c	(original)
+++ trunk/libaf/af_export.c	Sat Mar  1 11:31:51 2008
@@ -15,7 +15,9 @@
 #include "config.h"
 
 #include <sys/types.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	(original)
+++ trunk/libvo/vo_bl.c	Sat Mar  1 11:31:51 2008
@@ -27,7 +27,9 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/time.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/ioctl.h>
 
 #include "config.h"

Modified: trunk/loader/ext.c
==============================================================================
--- trunk/loader/ext.c	(original)
+++ trunk/loader/ext.c	Sat Mar  1 11:31:51 2008
@@ -18,7 +18,9 @@
 #include <malloc.h>
 #endif
 #include <unistd.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>

Modified: trunk/loader/ldt_keeper.c
==============================================================================
--- trunk/loader/ldt_keeper.c	(original)
+++ trunk/loader/ldt_keeper.c	Sat Mar  1 11:31:51 2008
@@ -17,13 +17,16 @@
  * http://svn.mplayerhq.hu/mplayer/trunk/
  */
 
+#include "config.h"
 #include "ldt_keeper.h"
 
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <fcntl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/types.h>
 #include <stdio.h>
 #include <unistd.h>

Modified: trunk/loader/module.c
==============================================================================
--- trunk/loader/module.c	(original)
+++ trunk/loader/module.c	Sat Mar  1 11:31:51 2008
@@ -26,7 +26,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <inttypes.h>
 
 #include "wine/windef.h"

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	(original)
+++ trunk/loader/win32.c	Sat Mar  1 11:31:51 2008
@@ -68,7 +68,9 @@ for DLL to know too much about its envir
 #include <kstat.h>
 #endif
 
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include "osdep/mmap_anon.h"
 
 #if HAVE_VSSCANF



More information about the MPlayer-cvslog mailing list