diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-03-25 08:56:00 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-03-25 08:56:00 +0100 |
commit | be583ea739fd2412138c1d73a01ca4a5ca4e9252 (patch) | |
tree | ce0a76d9f000ef1cd13eadb5ae2f126174846e6a /src/print_disk_info.c | |
parent | bf223d9b61498a6b1e723bacb007545a696141fe (diff) | |
parent | c9dc67e0542a0f540b014e8b2607bfc269433951 (diff) |
Merge pull request #13 from bapt/master
Fixes for FreeBSD
Diffstat (limited to 'src/print_disk_info.c')
-rw-r--r-- | src/print_disk_info.c | 3 |
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> |