--- fs2.c.orig	1999-07-23 21:40:17.000000000 -0600
+++ fs2.c	2004-06-21 20:01:38.000000000 -0600
@@ -19,7 +19,9 @@
  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  */
 #include <config.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 #include <memory.h>
 #include "video.h"
 #include "dither.h"
