]> git.sur5r.net Git - i3/i3status/commitdiff
Fix build on FreeBSD
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 25 Mar 2015 07:03:23 +0000 (08:03 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 25 Mar 2015 07:03:23 +0000 (08:03 +0100)
src/print_disk_info.c

index b9047e5388e9baa465cd23f334fbdf9755c7f9a9..69d7b8c6187445fe36047ce0c190355b3226c15c 100644 (file)
@@ -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>