From b8e2b797362526437e0642a6c2f2970d794f2561 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 6 Jul 2019 13:13:57 +1000 Subject: Add prototype for strnlen to prevent warnings. --- openbsd-compat/openbsd-compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsd-compat/openbsd-compat.h') 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 -- cgit v1.2.3