--- ./headers/libpnmrw.h~	Thu Aug  1 08:52:25 1996
+++ ./headers/libpnmrw.h	Thu Aug  1 08:51:16 1996
@@ -19,7 +19,12 @@
 ** malloc.h at all.  A sad situation.  If you have compilation problems
 ** that point here, feel free to tweak or remove these declarations.
 */
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
+
 #if !defined(sco)  &&  !defined(sgi) && !defined(IRIX)
 extern char* malloc();
 #endif
