about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-26 23:50:26 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-26 23:50:26 -0500
commit2a195dd31ceb2a483ea547444aac080bee132ad2 (patch)
treeb03f29bdfd798d11113beaa3315fd376e6de8cbf
parent41d518360fd2da0f19d6a2f8d8c5f226b201c1e9 (diff)
downloadmusl-2a195dd31ceb2a483ea547444aac080bee132ad2.tar.gz
musl-2a195dd31ceb2a483ea547444aac080bee132ad2.tar.xz
musl-2a195dd31ceb2a483ea547444aac080bee132ad2.zip
fix missing prototype for strsignal
-rw-r--r--include/string.h1
-rw-r--r--src/string/strsignal.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index dfe142a2..00c8e8ff 100644
--- a/include/string.h
+++ b/include/string.h
@@ -56,6 +56,7 @@ char *stpncpy(char *, const char *, size_t);
 size_t strnlen (const char *, size_t);
 char *strdup (const char *);
 char *strndup (const char *, size_t);
+char *strsignal(int);
 #endif
 
 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
diff --git a/src/string/strsignal.c b/src/string/strsignal.c
index 72fba8d1..3b0ae6d7 100644
--- a/src/string/strsignal.c
+++ b/src/string/strsignal.c
@@ -1,4 +1,5 @@
 #include <signal.h>
+#include <string.h>
 
 #if (SIGHUP == 1) && (SIGINT == 2) && (SIGQUIT == 3) && (SIGILL == 4) \
  && (SIGTRAP == 5) && (SIGABRT == 6) && (SIGBUS == 7) && (SIGFPE == 8) \