mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Only use F_SETSIG fcntl where it exists.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
31230b2427
commit
0e3e574012
1 changed files with 2 additions and 0 deletions
|
|
@ -85,10 +85,12 @@ static int snd_timer_hw_async(snd_timer_t *timer, int sig, pid_t pid)
|
||||||
}
|
}
|
||||||
if (sig < 0)
|
if (sig < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
#ifdef F_SETSIG
|
||||||
if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
|
if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
|
||||||
SYSERR("F_SETSIG failed");
|
SYSERR("F_SETSIG failed");
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
|
if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
|
||||||
SYSERR("F_SETOWN failed");
|
SYSERR("F_SETOWN failed");
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue