--- src/lib/lwp/sel.c.orig	Sat Dec 16 18:54:06 2000
+++ src/lib/lwp/sel.c	Sat Dec 16 18:54:25 2000
@@ -31,7 +31,11 @@
  *     Dave Pare, 1994
  */
 
+#if defined(__FreeBSD__)
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/uio.h>
