summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/__xpg_basename.c1
-rw-r--r--libc/string/dirname.c1
-rw-r--r--libc/string/psignal.c1
-rw-r--r--libc/string/strlcpy.c4
4 files changed, 6 insertions, 1 deletions
diff --git a/libc/string/__xpg_basename.c b/libc/string/__xpg_basename.c
index 6281f015c..2449d1d42 100644
--- a/libc/string/__xpg_basename.c
+++ b/libc/string/__xpg_basename.c
@@ -6,6 +6,7 @@
*/
#include "_string.h"
+#include <libgen.h>
char *__xpg_basename(register char *path)
{
diff --git a/libc/string/dirname.c b/libc/string/dirname.c
index a6242e238..6265e562e 100644
--- a/libc/string/dirname.c
+++ b/libc/string/dirname.c
@@ -6,6 +6,7 @@
*/
#include "_string.h"
+#include <libgen.h>
char *dirname(char *path)
{
diff --git a/libc/string/psignal.c b/libc/string/psignal.c
index c47277701..a852e6047 100644
--- a/libc/string/psignal.c
+++ b/libc/string/psignal.c
@@ -8,6 +8,7 @@
#include <features.h>
#include <stdio.h>
#include <string.h>
+#include <signal.h>
libc_hidden_proto(fprintf)
libc_hidden_proto(strsignal)
diff --git a/libc/string/strlcpy.c b/libc/string/strlcpy.c
index e4f4c3152..e888b85b2 100644
--- a/libc/string/strlcpy.c
+++ b/libc/string/strlcpy.c
@@ -22,7 +22,9 @@ libc_hidden_proto(strlcpy)
* Returns strlen(src), so truncation occurred if the return value is >= n. */
#ifdef WANT_WIDE
-attribute_hidden
+size_t Wstrlcpy(register Wchar *__restrict dst,
+ register const Wchar *__restrict src,
+ size_t n) attribute_hidden;
#endif
size_t Wstrlcpy(register Wchar *__restrict dst,
register const Wchar *__restrict src,