OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / string / psignal.c
index b6d6a30..daf9764 100644 (file)
@@ -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));
 }