[patch] 4.0.x build fix for darwin with awt.
Andreas Tobler
toa@pop.agri.ch
Thu Jun 2 20:37:00 GMT 2005
Hello,
the attached patch makes the build ok on darwin with java-awt enabled.
Ok for 4.0.x?
Andreas
2005-06-02 Andreas Tobler <a.tobler@schweiz.ch>
* jawt.c: Remove malloc.h include and use stdlib.h instead.
Index: jawt.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jawt.c,v
retrieving revision 1.2.6.2
diff -u -r1.2.6.2 jawt.c
--- jawt.c 18 May 2005 14:16:04 -0000 1.2.6.2
+++ jawt.c 2 Jun 2005 18:00:14 -0000
@@ -35,12 +35,11 @@
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
-
+#include <stdlib.h>
#include <jni.h>
#include <jawt.h>
#include <jawt_md.h>
#include "classpath_jawt.h"
-#include <malloc.h>
static jint (JNICALL _Jv_Lock) (JAWT_DrawingSurface* surface);
static void (JNICALL _Jv_Unlock) (JAWT_DrawingSurface* surface);
More information about the Java-patches
mailing list