From a4202b1ad974bec6b3612106b2b3990af2102289 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 17 Oct 2004 05:28:03 +0000 Subject: 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 --- devel/libgtop2/Makefile | 1 + devel/libgtop2/files/patch-sysdeps_common_fsusage.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 devel/libgtop2/files/patch-sysdeps_common_fsusage.c (limited to 'devel') 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 */ -- cgit v1.2.3