changeset 10908:dcca52fe32bd

disable af export for systems without mmap
author faust3
date Sun, 21 Sep 2003 12:16:16 +0000
parents d4ec1e1c8dc8
children afa3e514f472
files libaf/af.c libaf/af_export.c
diffstat 2 files changed, 23 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Sun Sep 21 11:56:09 2003 +0000
+++ b/libaf/af.c	Sun Sep 21 12:16:16 2003 +0000
@@ -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
--- a/libaf/af_export.c	Sun Sep 21 11:56:09 2003 +0000
+++ b/libaf/af_export.c	Sun Sep 21 12:16:16 2003 +0000
@@ -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*/