mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 14:00:45 -04:00
27 lines
909 B
C
27 lines
909 B
C
$NetBSD: patch-panel-plugin_fsguard.c,v 1.1 2015/04/21 08:56:40 jperkin Exp $
|
|
|
|
Fix NetBSD support.
|
|
Add SunOS, OS X and DragonFlyBSD support.
|
|
--- panel-plugin/fsguard.c.orig 2012-06-30 09:07:55.000000000 +0000
|
|
+++ panel-plugin/fsguard.c
|
|
@@ -38,13 +38,18 @@
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
+#include <sys/statvfs.h>
|
|
#if defined(__linux__) || defined(__GNU__)
|
|
#include <sys/vfs.h>
|
|
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
|
|
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__DragonFly__)
|
|
#include <sys/param.h>
|
|
#include <sys/mount.h>
|
|
#endif
|
|
|
|
+#if defined(__NetBSD__) || defined(__sun)
|
|
+#define statfs statvfs
|
|
+#endif
|
|
+
|
|
#include <gtk/gtk.h>
|
|
#include <libxfce4util/libxfce4util.h>
|
|
#include <libxfce4ui/libxfce4ui.h>
|