summaryrefslogtreecommitdiff
path: root/sysutils/xfce4-fsguard-plugin/patches/patch-aa
blob: 9ed35d5601778664eb9fc83a7174f65720e1ce2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.3 2007/01/23 17:07:58 joerg Exp $

--- panel-plugin/fsguard.c.orig	2005-10-11 20:27:09.000000000 +0000
+++ panel-plugin/fsguard.c
@@ -41,10 +41,13 @@
 #include <sys/stat.h>
 #if defined(__linux__)
 #include <sys/vfs.h>
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
 #include <sys/param.h>
 #include <sys/mount.h>
 #endif
+#if defined(__NetBSD__) && (__NetBSD_Version__ > 299000900) /* NetBSD 2.99.9 */
+#define statfs statvfs
+#endif
 #include <panel/plugins.h>
 #include <panel/xfce.h>
 #include <panel/xfce_support.h>