mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 20:40:13 -04:00
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
$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 <sys/vfs.h>
|
|
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
|
#include <sys/param.h>
|
|
#include <sys/mount.h>
|
|
#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 <grp.h>
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
@@ -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) {
|