summaryrefslogtreecommitdiff
path: root/devel/libgtop2/files/patch-sysdeps_common_fsusage.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libgtop2/files/patch-sysdeps_common_fsusage.c')
-rw-r--r--devel/libgtop2/files/patch-sysdeps_common_fsusage.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/libgtop2/files/patch-sysdeps_common_fsusage.c b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c
new file mode 100644
index 000000000000..de564dcfd5f6
--- /dev/null
+++ b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c
@@ -0,0 +1,14 @@
+--- sysdeps/common/fsusage.c.orig Sun Oct 17 00:51:26 2004
++++ sysdeps/common/fsusage.c Sun Oct 17 00:52:07 2004
+@@ -253,8 +253,9 @@
+ if (statvfs (path, &fsd) < 0)
+ return;
+
+-#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))
+- /* Solaris but not SunOS */
++#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \
++ || defined(__FreeBSD__)
++ /* Solaris but not SunOS and FreeBSD */
+ buf->block_size = fsd.f_frsize;
+ #else
+ /* else, including Linux */