[PATCH] m68k cross build fixes
Randy Rude
randy.rude@gdcanada.com
Thu Apr 10 22:15:00 GMT 2003
This patch fixes two failures I encountered while building a m68k cross
on a Linux host using the gcc-20030407 snapshot:
* hashtab.c: `free' undeclared (first use in this function)
* vsprintf.c: `varargs.h' is deprecated
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"
diff -Nwupr gcc-20030407/libiberty/vsprintf.c /home/rrude/src/gnu/gcc-20030407/libiberty/vsprintf.c
--- gcc-20030407/libiberty/vsprintf.c 2002-01-22 13:03:29.000000000 -0700
+++ /home/rrude/src/gnu/gcc-20030407/libiberty/vsprintf.c 2003-04-08 08:57:52.000000000 -0600
@@ -26,7 +26,7 @@ the resulting executable to be covered b
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
-#include <varargs.h>
+#include <stdarg.h>
#include <stdio.h>
#include <ansidecl.h>
#undef vsprintf
Randy
More information about the Gcc-patches
mailing list