summaryrefslogtreecommitdiff
path: root/libc/string/psignal.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/string/psignal.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
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));
}