opnsense-ports/www/libepc/files/patch-tests_framework.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
570 B
C

--- tests/framework.c.orig 2008-08-05 02:14:30.000000000 +0200
+++ tests/framework.c 2008-08-05 02:26:57.000000000 +0200
@@ -24,6 +24,7 @@
#include <avahi-client/client.h>
#include <avahi-common/error.h>
+#include <sys/socket.h>
#include <net/if.h>
#include <sys/ioctl.h>
@@ -194,7 +195,11 @@ epc_test_list_ifaces (void)
goto out;
}
+#ifdef __FreeBSD__
+ ifaces[j].ifidx = req->ifr_index;
+#else
ifaces[j].ifidx = req->ifr_ifindex;
+#endif
ifaces[j].mask = epc_test_result;
g_print ("%s: name=%s, ifidx=%u, \n",