Date: Tue, 12 Jul 2011 07:10:45 GMT From: Robert Millan <rmh@debian.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/158825: [PATCH] fusefs-kmod fix for Debian GNU/kFreeBSD Message-ID: <201107120710.p6C7AjK6042598@red.freebsd.org> Resent-Message-ID: <201107120720.p6C7K2xX009918@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158825 >Category: ports >Synopsis: [PATCH] fusefs-kmod fix for Debian GNU/kFreeBSD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 12 07:20:02 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Robert Millan >Release: Debian GNU/kFreeBSD "sid" >Organization: >Environment: >Description: Please consider this one-line patch to use __FreeBSD_version instead of __FreeBSD__ in fusefs-kmod. This makes it possible to build fuse module on Debian GNU/kFreeBSD (the compiler on this system doesn't define __FreeBSD__, however __FreeBSD_version is defined by kernel headers and therefore is always available to kernel modules). >How-To-Repeat: >Fix: Patch attached with submission follows: Index: fusefs-kmod/files/patch-fuse_module__fuse_io.c =================================================================== RCS file: /home/ncvs/ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_io.c,v retrieving revision 1.2 diff -u -p -r1.2 patch-fuse_module__fuse_io.c --- fusefs-kmod/files/patch-fuse_module__fuse_io.c 13 Jul 2009 13:52:30 -0000 1.2 +++ fusefs-kmod/files/patch-fuse_module__fuse_io.c 10 Jul 2011 22:04:04 -0000 @@ -4,7 +4,7 @@ #include <vm/vnode_pager.h> #include <vm/vm_object.h> -+#if (__FreeBSD__ >= 8) ++#if (__FreeBSD_version >= 800000) +#define vfs_bio_set_validclean vfs_bio_set_valid +#endif + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107120710.p6C7AjK6042598>