diff options
-rw-r--r-- | src/modules/oss-util.c | 8 | ||||
-rw-r--r-- | src/utils/padsp.c | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/oss-util.c b/src/modules/oss-util.c index d1c623b4..0aaf6971 100644 --- a/src/modules/oss-util.c +++ b/src/modules/oss-util.c @@ -93,7 +93,11 @@ success: pa_log_debug("capabilities:%s%s%s%s%s%s%s%s%s%s%s%s%s%s", *pcaps & DSP_CAP_BATCH ? " BATCH" : "", +#ifdef DSP_CAP_BIND *pcaps & DSP_CAP_BIND ? " BIND" : "", +#else + "", +#endif *pcaps & DSP_CAP_COPROC ? " COPROC" : "", *pcaps & DSP_CAP_DUPLEX ? " DUPLEX" : "", #ifdef DSP_CAP_FREERATE @@ -112,7 +116,11 @@ success: #else "", #endif +#ifdef DSP_CAP_MULTI *pcaps & DSP_CAP_MULTI ? " MULTI" : "", +#else + "", +#endif #ifdef DSP_CAP_OUTPUT *pcaps & DSP_CAP_OUTPUT ? " OUTPUT" : "", #else diff --git a/src/utils/padsp.c b/src/utils/padsp.c index ddb732f0..dfef3f3a 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -53,6 +53,11 @@ #include <pulsecore/llist.h> #include <pulsecore/gccmacro.h> +/* On some systems SIOCINQ isn't defined, but FIONREAD is just an alias */ +#if !defined(SIOCINQ) && defined(FIONREAD) +# define SIOCINQ FIONREAD +#endif + typedef enum { FD_INFO_MIXER, FD_INFO_STREAM, |