fsguard-plugin patch

Martti Kuparinen martti.kuparinen at iki.fi
Tue Nov 11 10:08:00 CET 2003


Hi!

Here's a patch to make this compile on FreeBSD (untested) and NetBSD.

Martti


--- fsguard.c.orig	2003-11-11 10:55:23.000000000 +0000
+++ fsguard.c	2003-11-11 10:57:56.000000000 +0000
@@ -39,11 +39,20 @@
 #include <libxfce4util/i18n.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/vfs.h>
 #include <panel/plugins.h>
 #include <panel/xfce.h>
 #include <panel/xfce_support.h>
 #include <libxfcegui4/netk-screen.h>
+
+#ifdef __Linux__
+#include <sys/vfs.h>
+#endif
+
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
+
 #include "icons.h"

 #define TINY 0



More information about the Xfce4-dev mailing list