summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-06 12:54:43 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-06 12:54:43 +1000
commit2753521e899f30d1d58b5da0b4e68fde6fcf341e (patch)
tree2eb95ff3f3f0f80cde38a1f1d08a7154b19d33b6 /openbsd-compat/openbsd-compat.h
parent01a1e21cd55d99293c8ff8ed7c590f2ee440da43 (diff)
downloadopenssh-git-2753521e899f30d1d58b5da0b4e68fde6fcf341e.tar.gz
Add prototype for compat strndup.(bz#3032).
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-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 865aaee5..95721357 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