mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Add missing patch to fix the build on i386
Reported in: 175979
This commit is contained in:
parent
77c595f99a
commit
9ed807fc0f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312013
18
sysutils/conky/files/patch-src-fs.c
Normal file
18
sysutils/conky/files/patch-src-fs.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user