opnsense-ports/audio/alsa-lib/files/patch-src__timer__timer_hw.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
357 B
C

--- src/timer/timer_hw.c~
+++ src/timer/timer_hw.c
@@ -91,10 +91,12 @@ static int snd_timer_hw_async(snd_timer_
}
if (sig < 0)
return 0;
+#ifdef F_SETSIG
if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
SYSERR("F_SETSIG failed");
return -errno;
}
+#endif
if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
SYSERR("F_SETOWN failed");
return -errno;