$OpenBSD: patch-j2se_src_solaris_native_sun_awt_VDrawingArea_c,v 1.1 2007/09/06 15:46:19 kurt Exp $
--- j2se/src/solaris/native/sun/awt/VDrawingArea.c.orig	Thu Jul  5 05:03:38 2007
+++ j2se/src/solaris/native/sun/awt/VDrawingArea.c	Fri Jul 27 18:25:14 2007
@@ -31,7 +31,11 @@
 #endif /* !HEADLESS */
 
 #include <stdio.h>
+#if defined(_ALLBSD_SOURCE)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 
 #ifdef __linux__
 /* XXX: Shouldn't be necessary. */
