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

[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);


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