Commit 619b6f94 authored by Benoit Rat's avatar Benoit Rat

fixing deprecated sys_siglist since GCC10

parent 3c9b25b8
......@@ -84,7 +84,11 @@ static void sighandler(int sig)
* we use sys_siglist[] instead of strsignal() to stay compatible
* with old versions of glibc
*/
#if _POSIX_C_SOURCE >= 200809L
printf("\nEXIT: Signal %s received\n",strsignal(sig));
#else
printf("\nEXIT: Signal %s received\n", sys_siglist[sig]);
#endif
free(_cmdlist);
if (user_sig_hndl)
user_sig_hndl();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment