diff -dur valgrind-2.2.0/coregrind/vg_unsafe.h valgrind-2.2.0-p/coregrind/vg_unsafe.h --- valgrind-2.2.0/coregrind/vg_unsafe.h 2004-11-02 22:03:17.000000000 +0100 +++ valgrind-2.2.0-p/coregrind/vg_unsafe.h 2004-11-02 20:49:06.000000000 +0100 @@ -47,7 +47,17 @@ #include /* for struct msghdr */ #include /* for SIOCOUTQ */ #include /* for sockaddr_un */ + +/* for linux-2.6.9, from linux/types.h */ +# include +# ifndef pgoff_t +# define pgoff_t unsigned long +# endif + +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) #include /* for struct ifreq et al */ +#endif #include /* for struct arpreq */ #include /* for struct rtentry */ #ifdef HAVE_LINUX_COMPILER_H