--- src/malloc.c.orig	2008-03-30 23:45:07.000000000 +0100
+++ src/malloc.c	2008-03-30 23:45:25.000000000 +0100
@@ -7,6 +7,7 @@
  ************************************************************************/
 static const char RCSid[] = "$Id: malloc.c,v 35004.22 2007/01/13 23:12:39 kkeys Exp $";
 
+#include <sys/types.h>
 #include "tfconfig.h"
 #include "port.h"
 #include "signals.h"