This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] m68k cross build fixes


Make a check in configure.in for this, because new OS's do not have <malloc.h>.
You might want to include <stdlib.h> instead but configure.in needs a check for that also.


Thanks,
Andrew Pinski


On Thursday, Apr 10, 2003, at 18:15 US/Eastern, Randy Rude wrote:


diff -Nwupr gcc-20030407/libiberty/hashtab.c /home/rrude/src/gnu/gcc-20030407/libiberty/hashtab.c
--- gcc-20030407/libiberty/hashtab.c 2003-01-20 11:41:47.000000000 -0700
+++ /home/rrude/src/gnu/gcc-20030407/libiberty/hashtab.c 2003-04-07 16:21:51.000000000 -0600
@@ -46,6 +46,7 @@ Boston, MA 02111-1307, USA. */
#endif


 #include <stdio.h>
+#include <malloc.h>

 #include "libiberty.h"
 #include "hashtab.h"


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