$OpenBSD: patch-src_zoom_c,v 1.1.1.1 2004/06/18 18:56:43 sturm Exp $
--- src/zoom.c.orig	2003-12-20 03:49:01.000000000 -0800
+++ src/zoom.c	2004-04-28 10:26:59.000000000 -0700
@@ -92,11 +92,17 @@
         - Added implementation of getopt() if compiling under Windows.
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
-#include <malloc.h>
+#ifndef SYS_BSD
+# ifdef HAVE_MALLOC_H
+# include <malloc.h>
+# endif
 #endif
 #include <math.h>
 
