summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-12-10 01:32:23 +1100
committerDarren Tucker <dtucker@zip.com.au>2014-12-10 01:32:23 +1100
commit642652d280499691c8212ec6b79724b50008ce09 (patch)
treeeac5f60ab7846b0d3050982a4d9d1f3d3b8950ef /openbsd-compat/openbsd-compat.h
parent3dfd8d93dfcc69261f5af99df56f3ff598581979 (diff)
downloadopenssh-git-642652d280499691c8212ec6b79724b50008ce09.tar.gz
Add reallocarray to compat library
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 ce6abae8..94718bab 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -62,6 +62,10 @@ void closefrom(int);
char *getcwd(char *pt, size_t size);
#endif
+#ifndef HAVE_REALLOCARRAY
+void *reallocarray(void *, size_t, size_t);
+#endif
+
#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH)
char *realpath(const char *path, char *resolved);
#endif