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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Ben Kaduk 2010-07-30 21:20:06 -04:00 committed by Derrick Brashear
parent ea8be82b95
commit b0a003fd8d

View File

@ -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)