--- src/lib/lwp/lwp.c.orig	Sat Dec 16 22:53:35 2000
+++ src/lib/lwp/lwp.c	Sat Dec 16 22:54:05 2000
@@ -23,7 +23,11 @@
 
 #include <stdio.h>
 #include <signal.h>
+#if defined(__FreeBSD__)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 #include <string.h>
 #include "lwp.h"
 #include "lwpint.h"
