summaryrefslogtreecommitdiff
path: root/net/rdesktop/patches/patch-ac
blob: 6f55cb412b7c8e40fb2a88749c7b7e8a90e5c171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ac,v 1.3 2005/03/23 15:24:11 xtraeme Exp $

--- disk.c.orig	2005-03-04 11:05:52.000000000 +0100
+++ disk.c	2005-03-23 16:18:02.000000000 +0100
@@ -56,9 +56,14 @@
 #elif (defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__APPLE__))
 #include <sys/param.h>
 #include <sys/mount.h>
+#define F_NAMELEN(buf) (NAME_MAX)
+#if (__NetBSD_Version__ >= 200040000)
+#define STATFS_FN(path, buf) (statvfs(path,buf))
+#define STATFS_T statvfs
+#else
 #define STATFS_FN(path, buf) (statfs(path,buf))
 #define STATFS_T statfs
-#define F_NAMELEN(buf) (NAME_MAX)
+#endif
 
 #elif (defined(__SGI_IRIX__))
 #include <sys/types.h>