--- a/src/utils/readfile.h
+++ b/src/utils/readfile.h
@@ -17,6 +17,8 @@
 #ifndef _READFILE_H_INCLUDED_
 #define _READFILE_H_INCLUDED_
 /* @(#$Id: readfile.h,v 1.3 2007-06-02 08:30:42 dockes Exp $  (C) 2004 J.F.Dockes */
+
+#include <sys/types.h>
 
 #include <string>
 using std::string;