tags 608711 + patch kthxbye Attached is the diff referred to by upstream. It applies without problems and I have confirmed that applying it causes it to build successfully on kfreebsd-amd64.
-- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
diff --git a/kern.c b/kern.c
index f809337..9d5f51e 100644
--- a/kern.c
+++ b/kern.c
@@ -338,7 +338,7 @@ void k_add_vif(int socket, vifi_t vifi, struct uvif *v)
/*
* Delete a virtual interface in the kernel.
*/
-void k_del_vif(int socket, vifi_t vifi, struct uvif *v)
+void k_del_vif(int socket, vifi_t vifi, struct uvif *v __attribute__((unused)))
{
/*
* Unfortunately Linux MRT_DEL_VIF API differs a bit from the *BSD one. It
@@ -350,7 +350,7 @@ void k_del_vif(int socket, vifi_t vifi, struct uvif *v)
struct vifctl vc;
vc.vifc_vifi = vifi;
- uvif_to_vifctl(&vc, v);
+ uvif_to_vifctl(&vc, v); /* 'v' is used only on Linux systems. */
if (setsockopt(socket, IPPROTO_IP, MRT_DEL_VIF, (char *)&vc, sizeof(vc)) < 0)
#else /* *BSD et al. */
signature.asc
Description: Digital signature

