--- valgrind-2.1.0/coregrind/vg_syscalls.c~ 2003-12-12 07:46:54.000000000 +0000 +++ valgrind-2.1.0/coregrind/vg_syscalls.c 2004-02-08 20:09:01.000000000 +0000 @@ -34,6 +34,11 @@ one. */ #include "vg_unsafe.h" +#include +#ifdef LIBC_HEADERS_VERSION +/* Fixed headers detected -- BLKGETSIZE definition is there */ +#include +#endif /* All system calls are channelled through here, doing two things: --- valgrind-2.1.0/coregrind/vg_intercept.c~ 2003-11-20 16:20:54.000000000 +0000 +++ valgrind-2.1.0/coregrind/vg_intercept.c 2004-02-08 21:11:33.000000000 +0000 @@ -57,9 +57,12 @@ #include #include #include +#include +#ifndef LIBC_HEADERS_VERSION #ifdef KERNEL_2_6 #include #endif +#endif #include /* for ipc_kludge */ #include #include --- valgrind-2.1.0/coregrind/vg_unsafe.h~ 2003-11-19 22:07:14.000000000 +0000 +++ valgrind-2.1.0/coregrind/vg_unsafe.h 2004-02-08 21:15:38.000000000 +0000 @@ -50,9 +50,12 @@ #include /* for struct ifreq et al */ #include /* for struct arpreq */ #include /* for struct rtentry */ +#include +#ifndef LIBC_HEADERS_VERSION #ifdef KERNEL_2_6 #include /* for __user definition */ #endif +#endif #include /* for struct ipc_kludge */ #include /* for struct msgbuf */ #include /* for struct sembuf */