summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2014-04-27 23:04:51 (GMT)
committerJohn Denker <jsd@av8n.com>2014-04-27 23:33:23 (GMT)
commit8e0679d9227c964d8df84bcb71054a4f14f72343 (patch)
treeee70210eb701bc604a1b6c577797c989f94fd0be /alloc.c
parent97f3e615e5d634ca0b762193c0e87017d41584fd (diff)
get rid of some warnings
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 */