summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2012-04-27 18:48:22 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-29 11:13:14 +0200
commit688d300646ad76c3ba014d57f06e7ed79bee25f9 (patch)
tree16763b382abb1d4f1c4a0d14a225a43ff880bbbc /src
parent75a741484e10d98658968b80328d1e003e191599 (diff)
Fix disk usage on OpenBSD.
Diffstat (limited to 'src')
-rw-r--r--src/print_disk_info.c4
1 files changed, 2 insertions, 2 deletions
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 <stdint.h>
#include <sys/statvfs.h>
#include <sys/types.h>
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (__OpenBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#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)