]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Only use F_SETSIG fcntl where it exists.
authorThomas Klausner <wiz@NetBSD.org>
Thu, 3 Mar 2016 11:57:34 +0000 (12:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Mar 2016 15:19:00 +0000 (16:19 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/timer/timer_hw.c

index e61b994d78bcd458f3d8521c66d020ad7e3f27b4..ddaebd337bbffcbf1a73a3ecb2e6e5de19f5728a 100644 (file)
@@ -85,10 +85,12 @@ static int snd_timer_hw_async(snd_timer_t *timer, int sig, pid_t pid)
        }
        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;