aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2008-08-09 10:06:42 +0000
committerKoop Mast <kwm@FreeBSD.org>2008-08-09 10:06:42 +0000
commit2bdea4d0c0191c06e39d09c4fe089383bf8d7d1a (patch)
treed27cea2979d2f8f96407f6bf464feee3f5038e7a /www
parentae676d6c326b63f33b09647a3d030ae51ccb988b (diff)
downloadports-2bdea4d0c0191c06e39d09c4fe089383bf8d7d1a.tar.gz
ports-2bdea4d0c0191c06e39d09c4fe089383bf8d7d1a.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/libepc/files/patch-tests_framework.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/libepc/files/patch-tests_framework.c b/www/libepc/files/patch-tests_framework.c
new file mode 100644
index 000000000000..e1eb61677441
--- /dev/null
+++ b/www/libepc/files/patch-tests_framework.c
@@ -0,0 +1,22 @@
+--- 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",