summaryrefslogtreecommitdiff
path: root/sysutils/xfce4-fsguard-plugin/patches/patch-aa
blob: 39603100eaecb1ffdf874fada9c6fa8af04d3b46 (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.5 2007/04/16 18:27:49 joerg Exp $

--- panel-plugin/fsguard.c.orig	2005-10-11 07:29:27.000000000 +0000
+++ panel-plugin/fsguard.c
@@ -39,10 +39,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 <gtk/gtk.h>
 #include <libxfce4util/libxfce4util.h>