$OpenBSD: patch-jdk_src_share_native_sun_java2d_SurfaceData_c,v 1.1 2008/03/19 18:05:46 kurt Exp $
--- jdk/src/share/native/sun/java2d/SurfaceData.c.orig	Tue Oct 30 05:03:52 2007
+++ jdk/src/share/native/sun/java2d/SurfaceData.c	Wed Nov  7 18:16:19 2007
@@ -28,7 +28,11 @@
 #include "jni_util.h"
 #include "Disposer.h"
 
+#ifdef _ALLBSD_SOURCE
+#include <stdlib.h>
+#else
 #include "malloc.h"
+#endif
 #include "string.h"
 
 /**
