diff options
Diffstat (limited to 'src/modules/module-detect.c')
-rw-r--r-- | src/modules/module-detect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-detect.c b/src/modules/module-detect.c index 718b2eb4..18e22de6 100644 --- a/src/modules/module-detect.c +++ b/src/modules/module-detect.c @@ -30,6 +30,8 @@ #include <stdlib.h> #include <errno.h> #include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> #include <polypcore/module.h> #include <polypcore/modargs.h> @@ -187,7 +189,7 @@ static int detect_solaris(pa_core *c, int just_one) { return -1; } - if (!S_ISCHR(s)) + if (!S_ISCHR(s.st_mode)) return 0; snprintf(args, sizeof(args), "device=%s", dev); |