This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]