From e4ca638e555bbcc06a08b152c8eda59b47b66e15 Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 17 Jul 2013 21:20:53 +0000 Subject: [PATCH] Additionally translate daddr_t to int64_t in the rumpvnode interface. The type daddr_t is not available for all systems (e.g. Linux systems with musl libc), and exposing it will just cause an unnecessary compilation failure even if the type is not used. --- sys/kern/vnode_if.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/vnode_if.sh b/sys/kern/vnode_if.sh index 5e884b087115..79fa6e923165 100644 --- a/sys/kern/vnode_if.sh +++ b/sys/kern/vnode_if.sh @@ -29,7 +29,7 @@ copyright="\ * SUCH DAMAGE. */ " -SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.58 2011/07/11 08:23:00 hannken Exp $' +SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.59 2013/07/17 21:20:53 pooka Exp $' # Script to produce VFS front-end sugar. # @@ -150,6 +150,8 @@ awk_parser=' at = "off_t"; if (at == "kauth_cred_t") at = "struct kauth_cred *" + if (at == "daddr_t") + at = "int64_t" } argtype[argc] = at; i++;