$OpenBSD: patch-jdk_src_share_native_sun_awt_debug_debug_util_h,v 1.1 2008/03/19 18:05:46 kurt Exp $
--- jdk/src/share/native/sun/awt/debug/debug_util.h.orig	Tue Oct 30 05:03:40 2007
+++ jdk/src/share/native/sun/awt/debug/debug_util.h	Wed Nov  7 18:16:18 2007
@@ -50,7 +50,9 @@ typedef void * dmutex_t;
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
+#if !defined(_ALLBSD_SOURCE)
 #include <malloc.h>
+#endif
 #include <limits.h>
 
 /* keep these after the other headers */
