This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] 4.0.x build fix for darwin with awt.
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Thu, 02 Jun 2005 20:02:03 +0200
- Subject: [patch] 4.0.x build fix for darwin with awt.
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);