summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/statfix.c1
-rw-r--r--libc/sysdeps/linux/common/statfix64.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/statfix.c b/libc/sysdeps/linux/common/statfix.c
index 778f8f8e6..507018dc3 100644
--- a/libc/sysdeps/linux/common/statfix.c
+++ b/libc/sysdeps/linux/common/statfix.c
@@ -24,6 +24,7 @@
* struct stat should look like. It turns out that each arch has a different
* opinion on the subject. Then pull in libc's version of struct stat... */
#include "statfix.h"
+#include <string.h>
/* Convert from the kernel's version of struct stat to libc's version */
void __statfix(struct libc_stat *libcstat, struct kernel_stat *kstat)
diff --git a/libc/sysdeps/linux/common/statfix64.c b/libc/sysdeps/linux/common/statfix64.c
index 5fe80cca7..1fd017487 100644
--- a/libc/sysdeps/linux/common/statfix64.c
+++ b/libc/sysdeps/linux/common/statfix64.c
@@ -27,6 +27,7 @@
#include "statfix64.h"
#ifdef __UCLIBC_HAVE_LFS__
+#include <string.h>
/* Convert from the kernel's version of struct stat to libc's version */
void __statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat)