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.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/oss/oss_probe.c b/sys/oss/oss_probe.c
index 741bb4c7..5b0d1284 100644
--- a/sys/oss/oss_probe.c
+++ b/sys/oss/oss_probe.c
@@ -1,5 +1,8 @@
-#include <sys/soundcard.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
@@ -7,6 +10,20 @@
#include <sys/ioctl.h>
#include <glib.h>
+#ifdef HAVE_OSS_INCLUDE_IN_SYS
+#include <sys/soundcard.h>
+#else
+
+#ifdef HAVE_OSS_INCLUDE_IN_ROOT
+#include <soundcard.h>
+#else
+
+#include <machine/soundcard.h>
+
+#endif /* HAVE_OSS_INCLUDE_IN_ROOT */
+
+#endif /* HAVE_OSS_INCLUDE_IN_SYS */
+
typedef struct _Probe Probe;
struct _Probe
{