Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 08:59:06 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312013 - head/sysutils/conky/files
Message-ID:  <201302100859.r1A8x632092028@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sun Feb 10 08:59:06 2013
New Revision: 312013
URL: http://svnweb.freebsd.org/changeset/ports/312013

Log:
  - Add missing patch to fix the build on i386
  
  Reported in:	175979

Added:
  head/sysutils/conky/files/patch-src-fs.c   (contents, props changed)

Added: head/sysutils/conky/files/patch-src-fs.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/conky/files/patch-src-fs.c	Sun Feb 10 08:59:06 2013	(r312013)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302100859.r1A8x632092028>