summaryrefslogtreecommitdiff
path: root/misc/root/patches/patch-ah
blob: f27e217cc6864f48d30a29c53e35b0b0673a547b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$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) {