summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWill Estes <westes575@gmail.com>2016-02-28 16:23:19 -0500
committerWill Estes <westes575@gmail.com>2016-02-28 16:23:19 -0500
commit80484ea2673393bf725ade8e72cda98983fa85cb (patch)
tree639c6a03f09f4b20ea8555413cfacc06263f0cc0 /lib
parentaade6607e290808ec5746519b55aaa8f78d8d2aa (diff)
Prototyped reallocarray implementation
Diffstat (limited to 'lib')
-rw-r--r--lib/reallocarray.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/reallocarray.c b/lib/reallocarray.c
index 11d1e7b..0c1e250 100644
--- a/lib/reallocarray.c
+++ b/lib/reallocarray.c
@@ -19,6 +19,7 @@
#include <config.h>
#ifndef HAVE_REALLOCARRAY
+#undef reallocarray
#include <sys/types.h>
#include <errno.h>
@@ -27,6 +28,8 @@
#endif
#include <stdlib.h>
+void *reallocarray(void *, size_t, size_t);
+
/*
* This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
* if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW