From: Jasper Lievisse Adriaanse Date: Fri, 27 Apr 2012 16:48:22 +0000 (+0200) Subject: Fix disk usage on OpenBSD. X-Git-Tag: 2.5~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=688d300646ad76c3ba014d57f06e7ed79bee25f9;p=i3%2Fi3status Fix disk usage on OpenBSD. --- diff --git a/src/print_disk_info.c b/src/print_disk_info.c index 9ddffd3..8bc8b41 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -6,7 +6,7 @@ #include #include #include -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (__OpenBSD__) #include #include #endif @@ -49,7 +49,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch INSTANCE(path); -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) struct statfs buf; if (statfs(path, &buf) == -1)