$OpenBSD: patch-mb_ordered_c,v 1.1 2004/06/22 03:07:18 brad Exp $
--- mb_ordered.c.orig	1999-07-23 21:53:08.000000000 -0600
+++ mb_ordered.c	2004-06-21 20:01:39.000000000 -0600
@@ -21,7 +21,9 @@
 /* This file contains C code to implement an ordered dither. */
 
 #include <config.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <memory.h>
 #include "video.h"
 #include "proto.h"
