$OpenBSD: patch-ffmpeg_libavcodec_mem_c,v 1.1.1.1 2004/06/18 18:56:43 sturm Exp $
--- ffmpeg/libavcodec/mem.c.orig	Fri Apr 23 23:27:38 2004
+++ ffmpeg/libavcodec/mem.c	Fri Apr 23 23:28:08 2004
@@ -29,8 +29,14 @@
 #undef free
 #undef realloc
 
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifndef SYS_BSD
+# ifdef HAVE_MALLOC_H
+# include <malloc.h>
+# endif
 #endif
 
 /* you can redefine av_malloc and av_free in your project to use your
