Skip to contentSkip to conversation

alsa-utils: fix wrong alias for signal.h

PATCH Applied John Spencer 2 participants 2 messages Jul 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa-utils: fix wrong alias for signal.h

in POSIX, there is no <sys/signal.h>.

it's merely a legacy alias used by glibc, and the header does nothing else than including <signal.h>.

so let's do the right thing and use the right name, which works everywhere.

alsaloop/alsaloop.c +1 -1
@@ -31,7 +31,7 @@
 #include <math.h>
 #include <pthread.h>
 #include <syslog.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include "alsaloop.h"
 
 struct loopback_thread {
#1 lore raw
Quoted 8 lines · John Spencer

in POSIX, there is no <sys/signal.h>.

it's merely a legacy alias used by glibc, and the header does nothing else than including <signal.h>.

so let's do the right thing and use the right name, which works everywhere.

I applied this patch to our git repo. Thanks.

Jaroslav

Signature · 3 lines
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.