From 0c4dfcaa97ff8db5265569afc6a80fbde29d51e8 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 7 Sep 2005 13:42:18 +0000 Subject: [PATCH] Use strsignal() Use strsignal() instead of sys_siglist[] (bug#1400). --- alsamixer/alsamixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index c861fcc..210040d 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -100,6 +100,7 @@ * automated updates after select() (i always missed that with OSS!). */ +#define _GNU_SOURCE #include #include #include @@ -2205,7 +2206,7 @@ static void mixer_signal_handler (int signal) { if (signal != SIGSEGV) - mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0); + mixer_abort (ERR_SIGNAL, strsignal(signal), 0); else { fprintf (stderr, "\nSegmentation fault.\n");