changeset 7091:2459fcc7baaf

Martin Olschewski <olschewski@zpr.uni-koeln.de>: [PATCH] ai_oss.c should check for USE_OSS_AUDIO
author alex
date Mon, 26 Aug 2002 17:20:17 +0000
parents 43d7b60bd7f4
children 8e9607c5897e
files libmpdemux/ai_oss.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/ai_oss.c	Sun Aug 25 23:19:38 2002 +0000
+++ b/libmpdemux/ai_oss.c	Mon Aug 26 17:20:17 2002 +0000
@@ -1,4 +1,6 @@
 #include "config.h"
+
+#ifdef USE_OSS_AUDIO
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
 #else
@@ -11,6 +13,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <sys/ioctl.h>
+#include <string.h> /* strerror */
 
 #include "audio_in.h"
 #include "mp_msg.h"
@@ -130,3 +133,5 @@
 
     return 0;
 }
+
+#endif /* USE_OSS_AUDIO */