libmikmod/libmikmod-3.1.11-dspbusy.patch

13 lines
521 B
Diff

diff -pur libmikmod-3.1.11/drivers/drv_oss.c libmikmod-3.1.11-fix/drivers/drv_oss.c
--- libmikmod-3.1.11/drivers/drv_oss.c 2005-08-04 10:41:29.000000000 +0200
+++ libmikmod-3.1.11-fix/drivers/drv_oss.c 2005-08-04 10:50:24.000000000 +0200
@@ -160,7 +160,7 @@ static BOOL OSS_IsThere(void)
in the kernel or sound hardware */
int fd;
- if((fd=open(OSS_GetDeviceName(),O_WRONLY))>=0) {
+ if((fd=open(OSS_GetDeviceName(),O_WRONLY|O_NONBLOCK))>=0) {
close(fd);
return 1;
}