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)
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 ce6abae82..94718babd 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -62,6 +62,10 @@ void closefrom(int);
62char *getcwd(char *pt, size_t size); 62char *getcwd(char *pt, size_t size);
63#endif 63#endif
64 64
65#ifndef HAVE_REALLOCARRAY
66void *reallocarray(void *, size_t, size_t);
67#endif
68
65#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) 69#if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH)
66char *realpath(const char *path, char *resolved); 70char *realpath(const char *path, char *resolved);
67#endif 71#endif