summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>