From: Christian Kohlstedde Date: Wed, 18 Feb 2015 21:11:57 +0000 (+0100) Subject: Excluding the code on BSD systems. X-Git-Tag: 2.9~5^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f7b25a15dd913dc7a40e3db957d216792c2fb694;p=i3%2Fi3status Excluding the code on BSD systems. --- diff --git a/src/print_disk_info.c b/src/print_disk_info.c index ef028bd..609f6d3 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -125,7 +125,6 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch if (statvfs(path, &buf) == -1) return; -#endif FILE *mntentfile = setmntent("/etc/mtab", "r"); struct mntent *m; @@ -144,6 +143,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch OUTPUT_FULL_TEXT(buffer); return; } +#endif if (low_threshold > 0 && below_threshold(buf, prefix_type, threshold_type, low_threshold)) { START_COLOR("color_bad");