On 09/22/2007 08:11 PM, Agri wrote:
> Hello
>
> Compiling apr-1.2.11 with --disable-ipv6 resuts in unknown symbol
> find_if_index in the libapr-1.so.0.2.11.
>
> Agri
>
>
I guess the patch below should fix this, but I am not sure if this is the
correct thing to do
in the case that IPV6 is disabled. So some remote eyes please.
Index: network_io/unix/multicast.c
===================================================================
--- network_io/unix/multicast.c (Revision 578475)
+++ network_io/unix/multicast.c (Arbeitskopie)
@@ -143,7 +143,11 @@
else
return APR_ENOTIMPL;
+#if APR_HAVE_IPV6
mip.gsr_interface = find_if_index(iface);
+#else
+ mip.gsr_interface = 0;
+#endif
memcpy(&mip.gsr_group, mcast->ipaddr_ptr, sizeof(mip.gsr_group));
memcpy(&mip.gsr_source, source->ipaddr_ptr, sizeof(mip.gsr_source));
Regards
RĂ¼diger