diff --git a/lib/malloc.c b/lib/malloc.c
index 5e7674bd47d541f17348164f049d3122f17f1ea9..a43d169271b733412ba2f8326fd7f7643de93869 100644 (file)
--- a/lib/malloc.c
+++ b/lib/malloc.c
#endif
#undef malloc
-#include <sys/types.h>
-
-char *malloc ();
+#include <stdlib.h>
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
-char *
+void *
rpl_malloc (size_t n)
{
if (n == 0)