From 2753521e899f30d1d58b5da0b4e68fde6fcf341e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 6 Jul 2019 12:54:43 +1000 Subject: Add prototype for compat strndup.(bz#3032). --- openbsd-compat/openbsd-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 865aaee53..957213577 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_STRNDUP +char *strndup(const char *s, size_t n); +#endif + #ifndef HAVE_SETENV int setenv(register const char *name, register const char *value, int rewrite); #endif -- cgit v1.2.3