summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-06 18:52:06 +0900
committerOBATA Akio <obache@wizdas.com>2019-04-16 18:02:18 +0900
commit630abb9f24f8d81654d5fb0830a28755f2e148a8 (patch)
treea947376dda064a4ba0636454a8e3cfb41c8d3ef5
parent78eb05cf322fe8bd2895cab6634ad573e579aa39 (diff)
downloadtdeutils-630abb9f24f8d81654d5fb0830a28755f2e148a8.tar.gz
tdeutils-630abb9f24f8d81654d5fb0830a28755f2e148a8.zip
Fix to build on NetBSD missing statfs from BSD44 feature
Signed-off-by: OBATA Akio <obache@wizdas.com>
-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)