aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-02-10 16:59:06 +0800
committermiwi <miwi@FreeBSD.org>2013-02-10 16:59:06 +0800
commitf2f770a67e5c34d8638b675ba337d942284fe63e (patch)
tree81920d95a8d9ff4f925e65129ac26bcf1893e8c6 /sysutils
parentd4663cb8871e45e8e41b2d98b6fb6a63680b4902 (diff)
downloadfreebsd-ports-gnome-f2f770a67e5c34d8638b675ba337d942284fe63e.tar.gz
freebsd-ports-gnome-f2f770a67e5c34d8638b675ba337d942284fe63e.tar.zst
freebsd-ports-gnome-f2f770a67e5c34d8638b675ba337d942284fe63e.zip
- Add missing patch to fix the build on i386
Reported in: 175979
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/conky/files/patch-src-fs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/conky/files/patch-src-fs.c b/sysutils/conky/files/patch-src-fs.c
new file mode 100644
index 000000000000..538580ee5be8
--- /dev/null
+++ b/sysutils/conky/files/patch-src-fs.c
@@ -0,0 +1,18 @@
+--- src/fs.c.orig 2012-05-04 00:08:27.000000000 +0300
++++ src/fs.c 2012-07-18 20:24:10.000000000 +0300
+@@ -118,9 +118,15 @@
+
+ static void update_fs_stat(struct fs_stat *fs)
+ {
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++ struct statfs s;
++
++ if (statfs(fs->path, &s) == 0) {
++#else
+ struct statfs64 s;
+
+ if (statfs64(fs->path, &s) == 0) {
++#endif
+ fs->size = (long long)s.f_blocks * s.f_bsize;
+ /* bfree (root) or bavail (non-roots) ? */
+ fs->avail = (long long)s.f_bavail * s.f_bsize;