diff --git a/src/plugins/oss/ao_oss.c b/src/plugins/oss/ao_oss.c index df793114f6e37fb3315c83f2e7770b4b5a8b9407..164736908ce2772e7859b52c9d4754a0c373067a 100644 --- a/src/plugins/oss/ao_oss.c +++ b/src/plugins/oss/ao_oss.c @@ -105,7 +105,7 @@ int _open_default_oss_device (char **dev_path, int blocking) #ifdef BROKEN_OSS /* Now have to remove the O_NONBLOCK flag if so instructed. */ - if (fd > 0 && blocking) { + if (fd >= 0 && blocking) { if (fcntl(fd, F_SETFL, 0) < 0) { /* Remove O_NONBLOCK */ /* If we can't go to blocking mode, we can't use this device */