--- export/src/search.c	2007-03-02 22:26:59.000000000 +0100
+++ ../src/search.c	2007-03-02 22:38:45.000000000 +0100
@@ -45,6 +45,7 @@
  * search.c: History and character search functions
  */
 #include <stdlib.h>
+#include <sys/types.h>
 #if defined(REGEX)
 #include <regex.h>
 #elif defined(REGEXP)