summaryrefslogtreecommitdiffstats
path: root/ark
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-06 18:52:06 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-05-04 17:25:50 +0200
commit55191cbbbb849d82654bc70febd463c1ef9acef7 (patch)
tree84de87fc0c3d8aea110a6511674067577ff0782f /ark
parentf152b7eb98a7228f93a22a0bbe0d6f9af269f3cb (diff)
downloadtdeutils-55191cbbbb849d82654bc70febd463c1ef9acef7.tar.gz
tdeutils-55191cbbbb849d82654bc70febd463c1ef9acef7.zip
Fix to build on NetBSD missing statfs from BSD44 feature
Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 630abb9f24f8d81654d5fb0830a28755f2e148a8)
Diffstat (limited to 'ark')
-rw-r--r--ark/arkutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ark/arkutils.cpp b/ark/arkutils.cpp
index 24411e8..72545f5 100644
--- a/ark/arkutils.cpp
+++ b/ark/arkutils.cpp
@@ -48,11 +48,11 @@
#endif
// for statfs:
-#ifdef BSD4_4
+#if defined(BSD4_4) && !defined(__NetBSD__)
#include <sys/mount.h>
#elif defined(__linux__)
#include <sys/vfs.h>
-#elif defined(__sun)
+#elif defined(__sun) || defined(__NetBSD__)
#include <sys/statvfs.h>
#define STATFS statvfs
#elif defined(_AIX)