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/gstosselement.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/gstosselement.c')
-rw-r--r-- | sys/oss/gstosselement.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 4c3512f1..0e57d47f 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -29,11 +29,24 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> -#include <sys/soundcard.h> #include <unistd.h> #include <errno.h> #include <string.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 */ + #include <gst/propertyprobe/propertyprobe.h> #include "gstosselement.h" @@ -987,7 +1000,21 @@ gst_osselement_change_state (GstElement * element) #if 0 + +#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 */ + #include <unistd.h> #include <fcntl.h> #include <stdio.h> |