summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index c661453..f890d84 100644
--- a/alloc.c
+++ b/alloc.c
@@ -1,6 +1,10 @@
#include "alloc.h"
#include "error.h"
-extern char *malloc();
+#ifndef __GNUC__
+ extern char *malloc();
+#else
+# include <stdlib.h>
+#endif
extern void free();
#define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */