nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/lib/realloc.c b/lib/realloc.c
2index d0d3e4a..6e9e539 100644
3--- a/lib/realloc.c
4+++ b/lib/realloc.c
5@@ -24,8 +24,12 @@
6
7 #include <sys/types.h>
8
9-char *malloc ();
10-char *realloc ();
11+#if STDC_HEADERS
12+# include <stdlib.h>
13+#else
14+void *malloc ();
15+void *realloc ();
16+#endif
17
18 /* Change the size of an allocated block of memory P to N bytes,
19 with error checking. If N is zero, change it to 1. If P is NULL,