diff options
author | Stéphane Loeuillet <gstreamer@leroutier.net> | 2004-06-07 13:40:08 +0000 |
---|---|---|
committer | Stéphane Loeuillet <gstreamer@leroutier.net> | 2004-06-07 13:40:08 +0000 |
commit | ef2468c353358aa89a32d7f596ae4f635e797304 (patch) | |
tree | d6a6a3a545d0a89cf0cb90e8e6435a60d6c89cfc /sys/oss/oss_probe.c | |
parent | a6659f8a245ce35a58d97bf8327fd35d13a60925 (diff) |
configure.ac: OSS portability
Original commit message from CVS:
* configure.ac: OSS portability
* ext/arts/gst_arts.c: idem
* sys/oss/gstosselement.c: idem
* sys/oss/gstossmixer.c: idem
* sys/oss/gstosssink.c: idem
* sys/oss/gstosssrc.c: idem
* sys/oss/oss_probe.c: idem
- check for soundcard.h in different places for some BSD
Diffstat (limited to 'sys/oss/oss_probe.c')
-rw-r--r-- | sys/oss/oss_probe.c | 19 |
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 { |