diff options
author | Darren Tucker <dtucker@zip.com.au> | 2014-12-10 01:32:23 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2014-12-10 01:32:23 +1100 |
commit | 642652d280499691c8212ec6b79724b50008ce09 (patch) | |
tree | eac5f60ab7846b0d3050982a4d9d1f3d3b8950ef /openbsd-compat/openbsd-compat.h | |
parent | 3dfd8d93dfcc69261f5af99df56f3ff598581979 (diff) |
Add reallocarray to compat library
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 4 |
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); | |||
62 | char *getcwd(char *pt, size_t size); | 62 | char *getcwd(char *pt, size_t size); |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #ifndef HAVE_REALLOCARRAY | ||
66 | void *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) |
66 | char *realpath(const char *path, char *resolved); | 70 | char *realpath(const char *path, char *resolved); |
67 | #endif | 71 | #endif |