From: Darren Tucker Date: Sat, 6 Jul 2019 02:54:43 +0000 (+1000) Subject: Add prototype for compat strndup.(bz#3032). X-Git-Tag: V_8_1_P1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2753521e899f30d1d58b5da0b4e68fde6fcf341e;p=thirdparty%2Fopenssh-portable.git Add prototype for compat strndup.(bz#3032). --- 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