chew failure on x86_64

DJ Delorie dj@redhat.com
Fri Jul 22 23:55:00 GMT 2005


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



More information about the Binutils mailing list