Include <sys/ioctl.h> also on systems without <soundcard.h>.
authorPavel Janík <Pavel@Janik.cz>
Mon, 15 Oct 2001 20:45:55 +0000 (20:45 +0000)
committerPavel Janík <Pavel@Janik.cz>
Mon, 15 Oct 2001 20:45:55 +0000 (20:45 +0000)
src/ChangeLog
src/sound.c

index 36cfdc6..2e878bc 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-15  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * sound.c: Include <sys/ioctl.h> also on systems without
+        <soundcard.h>.
+
 2001-10-15  Sam Steingold  <sds@gnu.org>
 
        * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
index 2a7be3e..7cbbabc 100644 (file)
@@ -35,6 +35,10 @@ Boston, MA 02111-1307, USA.  */
 #include <signal.h>
 #include "syssignal.h"
 
+#ifndef MSDOS
+#include <sys/ioctl.h>
+#endif
+
 /* FreeBSD has machine/soundcard.h.  Voxware sound driver docs mention
    sys/soundcard.h.  So, let's try whatever's there.  */
 
@@ -45,7 +49,6 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/soundcard.h>
 #endif
 #ifdef HAVE_SOUNDCARD_H
-#include <sys/ioctl.h>
 #include <soundcard.h>
 #endif