$NetBSD: patch-ah,v 1.3 2010/02/26 10:56:38 drochner Exp $ --- net/rootd/src/rootd.cxx.orig 2006-05-26 19:22:55.000000000 +0200 +++ net/rootd/src/rootd.cxx @@ -242,7 +242,7 @@ extern "C" int fstatfs(int file_descript extern "C" int fstatfs(int file_descriptor, struct statfs *buffer); #elif defined(linux) || defined(__hpux) || defined(cygwingcc) #include -#elif defined(__FreeBSD__) || defined(__OpenBSD__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #include #include #else @@ -251,7 +251,7 @@ extern "C" int fstatfs(int file_descript #if defined(linux) || defined(__hpux) || defined(_AIX) || defined(__alpha) || \ defined(__sun) || defined(__sgi) || defined(__FreeBSD__) || \ - defined(__APPLE__) || defined(cygwingcc) || defined(__OpenBSD__) + defined(__APPLE__) || defined(cygwingcc) || defined(__OpenBSD__) || defined(__NetBSD__) #define HAVE_MMAP #endif @@ -293,7 +293,7 @@ static int fcntl_lockf(int fd, int op, o #if defined(linux) || defined(__sun) || defined(__sgi) || \ defined(_AIX) || defined(__FreeBSD__) || defined(__APPLE__) || \ - defined(__MACH__) || defined(cygwingcc) || defined(__OpenBSD__) + defined(__MACH__) || defined(cygwingcc) || defined(__OpenBSD__) || defined(__NetBSD__) #include #include #include @@ -1369,6 +1369,7 @@ void RootdPutFile(const char *msg) } } +#if 0 // check file system space if (strcmp(gFile, "/dev/null")) { struct statfs statfsbuf; @@ -1386,6 +1387,7 @@ void RootdPutFile(const char *msg) } } } +#endif // seek to restartat position if (restartat) {