ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse.h
Jung-uk Kim 07e7ccf97a Fix build on -CURRENT after the introduction of accmode_t and renaming of
VOP_ACCESS 'a_mode' argument to 'a_accmode'.

Reviewed by:	Anish Mistry <amistry at am-productions dot biz> (maintainer)
2008-10-30 15:36:35 +00:00

32 lines
710 B
C

--- fuse_module/fuse.h.orig 2008-02-05 00:25:57.000000000 -0500
+++ fuse_module/fuse.h 2008-10-29 19:18:43.000000000 -0400
@@ -25,6 +25,14 @@
#endif
#endif
+#ifndef VOP_ACCESS_TAKES_ACCMODE_T
+#if __FreeBSD_version >= 800052
+#define VOP_ACCESS_TAKES_ACCMODE_T 1
+#else
+#define VOP_ACCESS_TAKES_ACCMODE_T 0
+#endif
+#endif
+
#ifndef VOP_OPEN_TAKES_FP
#if __FreeBSD_version >= 700044
#define VOP_OPEN_TAKES_FP 1
@@ -49,6 +57,14 @@
#endif
#endif
+#ifndef VOP_GETATTR_TAKES_THREAD
+#if __FreeBSD_version >= 800046
+#define VOP_GETATTR_TAKES_THREAD 0
+#else
+#define VOP_GETATTR_TAKES_THREAD 1
+#endif
+#endif
+
#ifndef USE_PRIVILEGE_API
/*
* __FreeBSD_version bump was omitted for introduction of