[MPlayer-dev-eng] [PATCH] fix ai_oss.c compilation on non linux systems
Bernd Ernesti
mplayer at lists.veego.de
Thu Aug 22 07:51:27 CEST 2002
Hi,
please apply this patch, because the code just includes <linux/soundcard.h>
without checking HAVE_SYS_SOUNDCARD_H or HAVE_SOUNDCARD_H.
I left the <linux/soundcard.h> because I don't know if the HAVE_SOUNDCARD_H
also covers that part on linux.
Oh, and you need to include <sys/ioctl.h> if you are using ioctl(2).
Bernd
-------------- next part --------------
Index: libmpdemux/ai_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/ai_oss.c,v
retrieving revision 1.1
diff -b -u -r1.1 ai_oss.c
--- libmpdemux/ai_oss.c 21 Aug 2002 22:50:40 -0000 1.1
+++ libmpdemux/ai_oss.c 22 Aug 2002 05:59:30 -0000
@@ -1,7 +1,16 @@
#include "config.h"
+#ifdef HAVE_SYS_SOUNDCARD_H
+#include <sys/soundcard.h>
+#else
+#ifdef HAVE_SOUNDCARD_H
+#include <soundcard.h>
+#else
#include <linux/soundcard.h>
+#endif
+#endif
#include <fcntl.h>
#include <errno.h>
+#include <sys/ioctl.h>
#include "audio_in.h"
#include "mp_msg.h"
More information about the MPlayer-dev-eng
mailing list