SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
sysutils/conky/patches/patch-src_fs_c
Normal file
22
sysutils/conky/patches/patch-src_fs_c
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- src/fs.c.orig Tue Jul 24 18:26:13 2012
|
||||
+++ src/fs.c Tue Jul 24 18:32:23 2012
|
||||
@@ -118,16 +118,16 @@ struct fs_stat *prepare_fs_stat(const char *s)
|
||||
|
||||
static void update_fs_stat(struct fs_stat *fs)
|
||||
{
|
||||
- struct statfs64 s;
|
||||
+ struct statfs s;
|
||||
|
||||
- if (statfs64(fs->path, &s) == 0) {
|
||||
+ if (statfs(fs->path, &s) == 0) {
|
||||
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;
|
||||
fs->free = (long long)s.f_bfree * s.f_bsize;
|
||||
get_fs_type(fs->path, fs->type);
|
||||
} else {
|
||||
- NORM_ERR("statfs64 '%s': %s", fs->path, strerror(errno));
|
||||
+ NORM_ERR("statfs '%s': %s", fs->path, strerror(errno));
|
||||
fs->size = 0;
|
||||
fs->avail = 0;
|
||||
fs->free = 0;
|
Loading…
Add table
Add a link
Reference in a new issue