summaryrefslogtreecommitdiffstats
path: root/sys/oss/oss_probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/oss/oss_probe.c')
-rw-r--r--sys/oss/oss_probe.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/oss/oss_probe.c b/sys/oss/oss_probe.c
index 5b0d1284..af624fa5 100644
--- a/sys/oss/oss_probe.c
+++ b/sys/oss/oss_probe.c
@@ -3,6 +3,7 @@
#include "config.h"
#endif
+
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
@@ -11,17 +12,17 @@
#include <glib.h>
#ifdef HAVE_OSS_INCLUDE_IN_SYS
-#include <sys/soundcard.h>
-#else
-
-#ifdef HAVE_OSS_INCLUDE_IN_ROOT
-#include <soundcard.h>
+# include <sys/soundcard.h>
#else
-
-#include <machine/soundcard.h>
-
-#endif /* HAVE_OSS_INCLUDE_IN_ROOT */
-
+# ifdef HAVE_OSS_INCLUDE_IN_ROOT
+# include <soundcard.h>
+# else
+# ifdef HAVE_OSS_INCLUDE_IN_MACHINE
+# include <machine/soundcard.h>
+# else
+# error "What to include?"
+# endif /* HAVE_OSS_INCLUDE_IN_MACHINE */
+# endif /* HAVE_OSS_INCLUDE_IN_ROOT */
#endif /* HAVE_OSS_INCLUDE_IN_SYS */
typedef struct _Probe Probe;