Fixes for the Solaris detection.
authorPierre Ossman <ossman@cendio.se>
Mon, 20 Feb 2006 13:59:42 +0000 (13:59 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 20 Feb 2006 13:59:42 +0000 (13:59 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@519 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/module-detect.c

index 718b2eb..18e22de 100644 (file)
@@ -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);