diff options
Diffstat (limited to 'lib/malloc.c')
-rw-r--r-- | lib/malloc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/malloc.c b/lib/malloc.c index 5e7674bd..a43d1692 100644 --- a/lib/malloc.c +++ b/lib/malloc.c | |||
@@ -22,14 +22,12 @@ | |||
22 | #endif | 22 | #endif |
23 | #undef malloc | 23 | #undef malloc |
24 | 24 | ||
25 | #include <sys/types.h> | 25 | #include <stdlib.h> |
26 | |||
27 | char *malloc (); | ||
28 | 26 | ||
29 | /* Allocate an N-byte block of memory from the heap. | 27 | /* Allocate an N-byte block of memory from the heap. |
30 | If N is zero, allocate a 1-byte block. */ | 28 | If N is zero, allocate a 1-byte block. */ |
31 | 29 | ||
32 | char * | 30 | void * |
33 | rpl_malloc (size_t n) | 31 | rpl_malloc (size_t n) |
34 | { | 32 | { |
35 | if (n == 0) | 33 | if (n == 0) |