$OpenBSD: patch-export_export_xvid4_c,v 1.1.1.1 2004/06/18 18:56:51 sturm Exp $
--- export/export_xvid4.c.orig	2004-01-03 07:08:46.000000000 -0800
+++ export/export_xvid4.c	2004-04-27 19:15:44.000000000 -0700
@@ -48,8 +48,10 @@
 # endif
 #endif
 
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
-#include <malloc.h>
+#ifndef SYS_BSD
+# ifdef HAVE_MALLOC_H
+# include <malloc.h>
+# endif
 #endif
 
 #include "xvid4.h"
@@ -1154,7 +1156,7 @@ static void print_matrix(unsigned char *
 
 static int load_xvid(xvid_module_t *xvid, char *path)
 {
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#ifdef SYS_BSD
 	const char *error;
 #else
 	char *error;
