diff src/audio/dma/SDL_dmaaudio.c @ 94:ae6e6b73333f

Cleaned up the OpenBSD port, thanks to Peter Valchev
author Sam Lantinga <slouken@lokigames.com>
date Sun, 08 Jul 2001 09:00:06 +0000
parents dab667b72ccc
children e8157fcb3114
line wrap: on
line diff
--- a/src/audio/dma/SDL_dmaaudio.c	Sat Jul 07 23:27:29 2001 +0000
+++ b/src/audio/dma/SDL_dmaaudio.c	Sun Jul 08 09:00:06 2001 +0000
@@ -39,7 +39,13 @@
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
+#ifdef OSS_USE_SOUNDCARD_H
+/* This is installed on some systems */
+#include <soundcard.h>
+#else
+/* This is recommended by OSS */
 #include <sys/soundcard.h>
+#endif
 
 #ifndef MAP_FAILED
 #define MAP_FAILED	((Uint8 *)-1)