This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] m68k cross build fixes
- From: Randy Rude <randy dot rude at gdcanada dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 10 Apr 2003 16:15:19 -0600
- Subject: [PATCH] m68k cross build fixes
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