--- regex.c.orig	Thu Apr 20 01:58:00 1995
+++ regex.c	Fri Nov 17 21:37:49 2000
@@ -114,7 +114,7 @@
  * Date :	 July 27, 1990
  */
 
-#ifndef NeXT
+#if !defined(NeXT) && !defined(__FreeBSD__)
 #include <malloc.h>
 #endif
 #include <string.h>
