1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Second part of the statfs64 patch

this also fixes the $fs_type variable.
This commit is contained in:
Pavel Labath 2011-11-02 19:18:02 +01:00
parent 3ed782c75c
commit 09dd497314

View File

@ -144,11 +144,11 @@ void get_fs_type(const char *path, char *result)
#if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) || defined(__FreeBSD__) || defined (__OpenBSD__)
struct statfs s;
if (statfs(path, &s) == 0) {
struct statfs64 s;
if (statfs64(path, &s) == 0) {
strncpy(result, s.f_fstypename, DEFAULT_TEXT_BUFFER_SIZE);
} else {
NORM_ERR("statfs '%s': %s", path, strerror(errno));
NORM_ERR("statfs64 '%s': %s", path, strerror(errno));
}
return;