Fixes for the Solaris detection.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@519 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-02-20 13:59:42 +00:00
parent 5cc0d0e682
commit f2292aeeff

View 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);