summaryrefslogtreecommitdiffstats
path: root/pw/reallocarray.h
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-02-10 11:29:12 -0500
committerCameron Katri <me@cameronkatri.com>2021-02-10 11:29:12 -0500
commitec831d9055a20b69cb9a7300990b8e4414cbd474 (patch)
tree2ad72d41955388fbb826a51500eb6bad89303708 /pw/reallocarray.h
parent66124b92b65dcc15b9695c7e05d72c7c7e174c39 (diff)
downloadpw-darwin-ec831d9055a20b69cb9a7300990b8e4414cbd474.tar.gz
pw-darwin-ec831d9055a20b69cb9a7300990b8e4414cbd474.tar.zst
pw-darwin-ec831d9055a20b69cb9a7300990b8e4414cbd474.zip
pw: fix building for iOS, completely untested
Diffstat (limited to 'pw/reallocarray.h')
-rw-r--r--pw/reallocarray.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pw/reallocarray.h b/pw/reallocarray.h
new file mode 100644
index 0000000..eacd3cc
--- /dev/null
+++ b/pw/reallocarray.h
@@ -0,0 +1,5 @@
+#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+void *reallocarray(void *optr, size_t nmemb, size_t size);