--- wwvi_font.c.orig	Tue May 24 23:47:13 2011
+++ wwvi_font.c	Tue May 24 23:48:08 2011
@@ -19,7 +19,12 @@
 
  */
 
+#include <sys/param.h>
+#ifndef BSD
 #include <malloc.h>
+#else
+#include <stdlib.h>
+#endif
 #include <string.h>
 
 #define WWVI_FONT_DEFINE_GLOBALS
