mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 10:00:37 -04:00
This brings in support for 10.3, so remove that BROKEN. Also bring in some Makefile logic to skip building the kernel module on FreeBSD releases known to not be supported by upstream; the server can still be built in those cases, allowing the 11.x BROKEN to be removed as well. Approved by: brd (ports committer)
24 lines
907 B
C
24 lines
907 B
C
--- src/rx/rx_kernel.h.orig 2016-12-14 18:28:29 UTC
|
|
+++ src/rx/rx_kernel.h
|
|
@@ -58,12 +58,20 @@ extern int osi_utoa(char *buf, size_t le
|
|
#endif
|
|
#define rx_ifnet_mtu(x) (x)->if_mtu
|
|
#define rx_ifnet_flags(x) (x?(x)->if_flags:0)
|
|
-#if defined(AFS_OBSD46_ENV) || defined(AFS_FBSD81_ENV)
|
|
+#if __FreeBSD_version >= 1100032
|
|
+#define rx_ifaddr_withnet(x) ifa_ifwithnet(x, 0, RT_ALL_FIBS)
|
|
+#elif 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)
|
|
#endif
|
|
+#if defined(AFS_FBSD81_ENV)
|
|
+#if defined(if_metric)
|
|
#define rx_ifnet_metric(x) (x?(x)->if_data.ifi_metric:0)
|
|
+#else
|
|
+#define rx_ifnet_metric(x) (x?(x)->if_metric:0)
|
|
+#endif
|
|
+#endif
|
|
#define rx_ifaddr_ifnet(x) (x?(x)->ifa_ifp:0)
|
|
#define rx_ifaddr_address_family(x) (x)->ifa_addr->sa_family
|
|
#define rx_ifaddr_address(x, y, z) memcpy(y, (x)->ifa_addr, z)
|