[Mplayer-cvslog] CVS: main/libaf af.c,1.25,1.26 af_export.c,1.1,1.2

Sascha Sommer CVS faust3 at mplayerhq.hu
Sun Sep 21 14:16:43 CEST 2003


Update of /cvsroot/mplayer/main/libaf
In directory mail:/var/tmp.root/cvs-serv25867/libaf

Modified Files:
	af.c af_export.c 
Log Message:
disable af export for systems without mmap

Index: af.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- af.c	20 Sep 2003 13:42:26 -0000	1.25
+++ af.c	21 Sep 2003 12:16:16 -0000	1.26
@@ -7,6 +7,7 @@
 #endif
 
 #include "af.h"
+#include "../config.h"
 
 // Static list of filters
 extern af_info_t af_info_dummy;
@@ -23,21 +24,23 @@
 extern af_info_t af_info_sub;
 extern af_info_t af_info_export;
 
-static af_info_t* filter_list[]={ \
-   &af_info_dummy,\
-   &af_info_delay,\
-   &af_info_channels,\
-   &af_info_format,\
-   &af_info_resample,\
-   &af_info_volume,\
-   &af_info_equalizer,\
-   &af_info_gate,\
-   &af_info_comp,\
-   &af_info_pan,\
-   &af_info_surround,\
-   &af_info_sub,\
-   &af_info_export,\
-   NULL \
+static af_info_t* filter_list[]={ 
+   &af_info_dummy,
+   &af_info_delay,
+   &af_info_channels,
+   &af_info_format,
+   &af_info_resample,
+   &af_info_volume,
+   &af_info_equalizer,
+   &af_info_gate,
+   &af_info_comp,
+   &af_info_pan,
+   &af_info_surround,
+   &af_info_sub,
+#ifdef HAVE_SYS_MMAN_H
+   &af_info_export,
+#endif
+   NULL 
 };
 
 // Message printing

Index: af_export.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_export.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- af_export.c	20 Sep 2003 13:42:26 -0000	1.1
+++ af_export.c	21 Sep 2003 12:16:16 -0000	1.2
@@ -12,6 +12,9 @@
 #include <string.h>
 #include <inttypes.h>
 #include <unistd.h>
+#include "../config.h"
+
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/types.h>
@@ -261,3 +264,5 @@
     AF_FLAGS_REENTRANT,
     af_open
 };
+
+#endif /*HAVE_SYS_MMAN_H*/



More information about the MPlayer-cvslog mailing list