$OpenBSD: patch-export_export_xvid2_c,v 1.1.1.1 2004/06/18 18:56:43 sturm Exp $
--- export/export_xvid2.c.orig	2003-12-20 03:48:49.000000000 -0800
+++ export/export_xvid2.c	2004-04-27 19:15:44.000000000 -0700
@@ -48,8 +48,10 @@
 # endif
 #endif
 
-#if !defined(__FreeBSD__) && !defined(__APPLE__) /* We have malloc() in stdlib.h */
-#include <malloc.h>
+#ifndef SYS_BSD /* We have malloc() in stdlib.h */
+# ifdef HAVE_MALLOC_H
+# include <malloc.h>
+# endif
 #endif
 
 /* You must match options compiled into your XviD lib */
@@ -642,7 +644,7 @@ MOD_stop
 static int xvid2_init(char *path)
 {
 
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#ifdef SYS_BSD
 	const
 #endif    
 		char *error;
