blob: c75d3dc6fc730c7b7b6c94d6184b1a3461e8095a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-aa,v 1.2 2012/08/17 15:13:40 marino Exp $
--- djmount/fuse_main.c 2008/04/11 12:27:48 1.1
+++ djmount/fuse_main.c 2008/04/11 12:28:51
@@ -32,7 +32,11 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
+#if defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/statvfs.h>
+#else
#include <sys/statfs.h>
+#endif
#ifdef HAVE_SETXATTR
# include <sys/xattr.h>
#endif
@@ -734,6 +738,7 @@
// Force Read-only (write operations not implemented yet)
FUSE_ARG ("-r");
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
#if HAVE_FUSE_O_READDIR_INO
// try to fill in d_ino in readdir
FUSE_ARG ("-o");
@@ -746,6 +751,7 @@
FUSE_ARG ("-o");
FUSE_ARG ("direct_io");
#endif
+#endif /* !NetBSD */
/*
* Set charset encoding
|