$OpenBSD: patch-ext_gd_libgd_gdcache_h,v 1.3 2011/06/18 19:49:50 sthen Exp $
--- ext/gd/libgd/gdcache.h.orig.port	Sun Dec 28 20:11:08 2003
+++ ext/gd/libgd/gdcache.h	Sat Jun 18 12:44:55 2011
@@ -41,7 +41,7 @@
 /*********************************************************/
 
 #include <stdlib.h>
-#ifdef HAVE_MALLOC_H
+#if (!defined(__OpenBSD__)) && HAVE_MALLOC_H
  #include <malloc.h>
 #endif
 #ifndef NULL
