summaryrefslogtreecommitdiffstats
path: root/devel/libgtop2
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-10-17 13:28:03 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-10-17 13:28:03 +0800
commita4202b1ad974bec6b3612106b2b3990af2102289 (patch)
treef44e0c61fc6cc56150b3c5a7bc58167b09fff305 /devel/libgtop2
parent4b17b778d7c71548d2e90a1cbb7a8cd46efa5b49 (diff)
downloadmarcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar.gz
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar.bz2
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar.lz
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar.xz
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.tar.zst
marcuscom-ports-a4202b1ad974bec6b3612106b2b3990af2102289.zip
Fix file system size by using statvfs.f_fsize instead of f_bsize.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2997 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2')
-rw-r--r--devel/libgtop2/Makefile1
-rw-r--r--devel/libgtop2/files/patch-sysdeps_common_fsusage.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile
index c333ba6d0..4a3196dd9 100644
--- a/devel/libgtop2/Makefile
+++ b/devel/libgtop2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libgtop2
PORTVERSION= 2.8.1
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.8
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 000000000..de564dcfd
--- /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 */