aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-08 20:55:36 +0100
committerDuncaen <mail@duncano.de>2017-03-08 20:57:07 +0100
commit0173f3bd1c8861b9276d2c203647e273db3449ec (patch)
tree0802d32870cad5f2a6c734e53db099bf966a3fe3
parentb6f8ee3b4e99516ae57d107bbc32fd75651947f6 (diff)
downloadlobase-0173f3bd1c8861b9276d2c203647e273db3449ec.tar.gz
bin/df: use openbsd like statfs(2) by default
-rw-r--r--bin/df/df.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 46c377d..df28339 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -35,6 +35,10 @@
* SUCH DAMAGE.
*/
+#ifdef __linux__
+# define __NEED_OPENBSD_statfs
+#endif
+
#include <sys/stat.h>
#include <sys/mount.h>