summaryrefslogtreecommitdiff
path: root/libc/string/psignal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/psignal.c')
-rw-r--r--libc/string/psignal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/string/psignal.c b/libc/string/psignal.c
index b6d6a30c0..daf9764b1 100644
--- a/libc/string/psignal.c
+++ b/libc/string/psignal.c
@@ -5,11 +5,13 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
+#define _GNU_SOURCE
#include <features.h>
#include <stdio.h>
#include <string.h>
-extern char *__strsignal (int __sig) __THROW attribute_hidden;
+libc_hidden_proto(fprintf)
+libc_hidden_proto(strsignal)
/* TODO: make this threadsafe with a reentrant version of strsignal? */
@@ -26,5 +28,5 @@ void psignal(int signum, register const char *message)
message = (sep += 2); /* or passed an empty string. */
}
- fprintf(stderr, "%s%s%s\n", message, sep, __strsignal(signum));
+ fprintf(stderr, "%s%s%s\n", message, sep, strsignal(signum));
}