From b0a003fd8d3d1d34dbd6248bf1acec141954f080 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Fri, 30 Jul 2010 21:20:06 -0400 Subject: [PATCH] FBSD: update ifa_ifwithnet usage FreeBSD 8.1 (and 9.0) now require a second parameter to ifa_ifwithnet. Fix the build by using the same macro as OBSD46. Change-Id: I22eac8722bef79b6349b9d879eb42d63450b362e Reported-by: Jan Henrik Sylvester Reviewed-on: http://gerrit.openafs.org/2489 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/rx/rx_kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx_kernel.h b/src/rx/rx_kernel.h index a7a0e94037..f72a322d9d 100644 --- a/src/rx/rx_kernel.h +++ b/src/rx/rx_kernel.h @@ -54,7 +54,7 @@ extern int osi_utoa(char *buf, size_t len, unsigned long val); #endif #define rx_ifnet_mtu(x) (x)->if_mtu #define rx_ifnet_flags(x) (x?(x)->if_flags:0) -#ifdef AFS_OBSD46_ENV +#if defined(AFS_OBSD46_ENV) || defined(AFS_FBSD81_ENV) #define rx_ifaddr_withnet(x) ifa_ifwithnet(x, 0) #else #define rx_ifaddr_withnet(x) ifa_ifwithnet(x)