test: fix udp_multicast_interface6 on FreeBSD

This commit is contained in:
Saúl Ibarra Corretgé 2014-08-10 10:39:58 +02:00
parent ac879ed8f8
commit 94c7a13f0a

View File

@ -69,7 +69,7 @@ TEST_IMPL(udp_multicast_interface6) {
r = uv_udp_bind(&server, (const struct sockaddr*)&baddr, 0);
ASSERT(r == 0);
#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__FreeBSD__)
r = uv_udp_set_multicast_interface(&server, "::1%lo0");
#else
r = uv_udp_set_multicast_interface(&server, NULL);