diff options
author | OBATA Akio <obache@wizdas.com> | 2019-04-15 18:02:32 +0900 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2019-05-04 15:22:41 +0000 |
commit | d349995488a13687171a67efd981e986b3b703e5 (patch) | |
tree | d6ea5761495b19bd9ca967ea8e1b9ce9ce6a936d /config.h.cmake | |
parent | f8424834b6a36b4d3e43e3af199e55c18fb913b8 (diff) | |
download | tdeutils-d349995488a13687171a67efd981e986b3b703e5.tar.gz tdeutils-d349995488a13687171a67efd981e986b3b703e5.zip |
Change and simplify `statvfs` conditions in FileSystemStats
`getfsstat` v.s. `getvfsstat` condition is different than
`statfs` v.s. `statvfs`, so split each condition and simplify.
For `get(v)fsstat` side, changed to check and use `getmntinfo`, because
it is better than `get(v)fsstat` with fixed buffer size, and easier
than improve it with dynamic buffer allocation.
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index 52adf87..6676c8b 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -91,6 +91,12 @@ #cmakedefine HAVE_GETLOADAVG #endif // HAVE_GETLOADAVG +#cmakedefine HAVE_STATFS +#if !defined( HAVE_STATVFS ) +#cmakedefine HAVE_STATVFS +#endif +#cmakedefine HAVE_GETMNTINFO +#cmakedefine GETMNTINFO_USES_STATVFS // superkaramba |