summaryrefslogtreecommitdiff
path: root/src/print_disk_info.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-03-25 08:03:23 +0100
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-03-25 08:03:23 +0100
commite9fc4c1c0640cf21a85d4798aac20323100eac68 (patch)
tree56378fd87d9edbe62377df94198e10305beec229 /src/print_disk_info.c
parentbf223d9b61498a6b1e723bacb007545a696141fe (diff)
Fix build on FreeBSD
Diffstat (limited to 'src/print_disk_info.c')
-rw-r--r--src/print_disk_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/print_disk_info.c b/src/print_disk_info.c
index b9047e5..69d7b8c 100644
--- a/src/print_disk_info.c
+++ b/src/print_disk_info.c
@@ -3,7 +3,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <mntent.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
@@ -11,6 +10,8 @@
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (__OpenBSD__) || defined(__DragonFly__)
#include <sys/param.h>
#include <sys/mount.h>
+#else
+#include <mntent.h>
#endif
#include <yajl/yajl_gen.h>
#include <yajl/yajl_version.h>