summaryrefslogtreecommitdiffstats
path: root/lib/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/str.h b/lib/str.h
index f06d7543..5492469e 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -21,4 +21,8 @@ size_t strlcpy(char *, const char *, size_t);
size_t strlcat(char *, const char *, size_t);
#endif
+#ifndef HAVE_STRNLEN
+extern size_t strnlen(const char *s, size_t maxlen);
+#endif
+
#endif