summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-06 05:13:57 +0200
committerDarren Tucker <dtucker@dtucker.net>2019-07-06 05:13:57 +0200
commitb8e2b797362526437e0642a6c2f2970d794f2561 (patch)
tree8266ea87dcef398601615d285ba5c3de31122319 /openbsd-compat
parentCast *ID types to unsigned long when printing. (diff)
downloadopenssh-b8e2b797362526437e0642a6c2f2970d794f2561.tar.xz
openssh-b8e2b797362526437e0642a6c2f2970d794f2561.zip
Add prototype for strnlen to prevent warnings.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openbsd-compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 957213577..f58646886 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -109,6 +109,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
char *strcasestr(const char *, const char *);
#endif
+#ifndef HAVE_STRNLEN
+size_t strnlen(const char *, size_t);
+#endif
+
#ifndef HAVE_STRNDUP
char *strndup(const char *s, size_t n);
#endif