1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_main.c
Beat Gaetzi 3b4a59d366 - Fix panic on FreeBSD 8.x and newer
- Bump PORTREVISION

PR:		ports/149674
Submitted by:	Dmitrij Tejblum <dt AT yandex.ru>
Approved by:	Anish Mistry <amistry AT am-productions.biz> (maintainer)
2010-10-14 11:44:10 +00:00

15 lines
455 B
C

--- fuse_module/fuse_main.c.00 2010-08-15 14:40:29.000000000 +0400
+++ fuse_module/fuse_main.c 2010-08-15 15:56:56.000000000 +0400
@@ -108,6 +108,9 @@
switch (what) {
case MOD_LOAD: /* kldload */
+#if __FreeBSD_version > 800009
+ fuse_fileops.fo_truncate = vnops.fo_truncate;
+#endif
fuse_fileops.fo_ioctl = vnops.fo_ioctl;
fuse_fileops.fo_poll = vnops.fo_poll;
fuse_fileops.fo_kqfilter = vnops.fo_kqfilter;