summaryrefslogtreecommitdiff
path: root/filesystems/fuse-djmount/patches/patch-aa
blob: dc8cd1bf06bdd902d5ea747aa6e243a7e6054daf (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.1.1.1 2008/04/11 14:55:45 agc 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>
+#ifdef __NetBSD__
+#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__)
 #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