summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2/patches/patch-ak
blob: 21d6621b6fc0cf3b77fc91782984c7fc3b48d147 (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
$NetBSD: patch-ak,v 1.1 2004/08/10 14:18:44 ben Exp $

--- src/df.c.orig	2004-04-29 17:01:02.000000000 -0400
+++ src/df.c	2004-08-09 21:28:39.000000000 -0400
@@ -49,5 +49,5 @@
 
 {
-#if defined SOLARIS || defined OSF || defined UNIXWARE 
+#if defined SOLARIS || defined OSF || defined UNIXWARE || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
     struct statvfs buf;
 #elif defined ULTRIX
@@ -71,5 +71,5 @@
        return CF_INFINITY;
        }
-#elif defined SOLARIS || defined OSF || defined UNIXWARE 
+#elif defined SOLARIS || defined OSF || defined UNIXWARE || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
     if (statvfs (file, &buf) != 0)
        {
@@ -78,5 +78,5 @@
        return CF_INFINITY;
        }
-#elif defined IRIX || defined SCO || defined CFCRAY || defined UNIXWARE
+#elif defined IRIX || defined SCO || defined CFCRAY || defined UNIXWARE || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
     if (statfs (file, &buf, sizeof (struct statfs), 0) != 0)
        {