summaryrefslogtreecommitdiffstats
path: root/lib/compat/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compat/strnlen.c')
-rw-r--r--lib/compat/strnlen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compat/strnlen.c b/lib/compat/strnlen.c
index d02bb4b..288a298 100644
--- a/lib/compat/strnlen.c
+++ b/lib/compat/strnlen.c
@@ -20,6 +20,8 @@
# include <config.h>
#endif
+#include <string.h>
+
#include "compat.h"
/* Find the length of STRING, but scan at most MAXLEN characters.