diff -urN fakeroot-0.4.5/communicate.h fakeroot-0.4.5-freebsd/communicate.h --- fakeroot-0.4.5/communicate.h Tue Sep 7 20:38:14 1999 +++ fakeroot-0.4.5-freebsd/communicate.h Mon Jan 28 01:51:02 2002 @@ -14,7 +14,8 @@ As I assume that pre-2.1 libc's will just ignore those _LARGEFILE64_SOURCE defines, I hope I can get away with this approach: */ - + +#ifndef __NetBSD__ /*First, unconditionally define these, so that glibc 2.1 features.h defines the needed 64 bits defines*/ #ifndef _LARGEFILE64_SOURCE @@ -59,6 +60,8 @@ # define _LARGEFILE_SOURCE #endif #endif + +#endif /* __NetBSD__ */ #include diff -urN fakeroot-0.4.5/fakerootconfig.h fakeroot-0.4.5-freebsd/fakerootconfig.h --- fakeroot-0.4.5/fakerootconfig.h Sat Oct 9 15:31:20 1999 +++ fakeroot-0.4.5-freebsd/fakerootconfig.h Mon Jan 28 01:44:45 2002 @@ -1,14 +1,8 @@ -#define NEXT_STAT(a,b,c) next___xstat(a,b,c) -#define STAT_ARG(a,b,c) (a,b,c) -#define NEXT_FSTAT(a,b,c) next___fxstat(a,b,c) -#define FSTAT_ARG(a,b,c) (a,b,c) -#define NEXT_LSTAT(a,b,c) next___lxstat(a,b,c) -#define LSTAT_ARG(a,b,c) (a,b,c) -#define NEXT_STAT64(a,b,c) next___xstat64(a,b,c) -#define STAT64_ARG(a,b,c) (a,b,c) -#define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c) -#define FSTAT64_ARG(a,b,c) (a,b,c) -#define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c) -#define LSTAT64_ARG(a,b,c) (a,b,c) -#define NEXT_MKNOD(a,b,c,d) next___xmknod(a,b,c,d) -#define MKNOD_ARG(a,b,c,d) (a,b,c,d) +#define NEXT_STAT(a,b,c) next_stat(b,c) +#define STAT_ARG(a,b,c) (b,c) +#define NEXT_FSTAT(a,b,c) next_fstat(b,c) +#define FSTAT_ARG(a,b,c) (b,c) +#define NEXT_LSTAT(a,b,c) next_lstat(b,c) +#define LSTAT_ARG(a,b,c) (b,c) +#define NEXT_MKNOD(a,b,c,d) next_mknod(b,c,d) +#define MKNOD_ARG(a,b,c,d) (b,c,d) File fakeroot-0.4.5/test/hda3 is a regular empty file while file fakeroot-0.4.5-freebsd/test/hda3 is a block special file