2013-09-26 17:14:40 +02:00

33 lines
770 B
Plaintext

$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