This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
chew failure on x86_64
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 22 Jul 2005 19:54:55 -0400
- Subject: chew failure on x86_64
You can't call malloc without a prototype, when pointers are 64 bits
and integers are 32 bits.
2005-07-22 DJ Delorie <dj@redhat.com>
* chew.c: Include stdlib.h.
Index: chew.c
===================================================================
RCS file: /cvs/src/src/bfd/doc/chew.c,v
retrieving revision 1.17
diff -p -U3 -r1.17 chew.c
--- chew.c 22 Jul 2005 18:16:17 -0000 1.17
+++ chew.c 22 Jul 2005 23:53:33 -0000
@@ -86,6 +86,7 @@ Foundation, Inc., 51 Franklin Street - F
#include <assert.h>
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
#define DEF_SIZE 5000
#define STACK 50