X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fsocket.c;h=c03cc34d6c5aadb04ecd098a6c4644a052fe9bcd;hb=461b5328c99ef6af64f8d1313f63af8228ef720d;hp=ef421c9f2218ce944cb882d856f3da2f97374db6;hpb=8b39fbe45e2dd0dec1b6e460cdb3abef25ad168a;p=catta diff --git a/avahi-core/socket.c b/avahi-core/socket.c index ef421c9..c03cc34 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -27,16 +27,19 @@ #include #include #include -#include -#include -#include #include #include #include -#include #include #include +#include +#include +#include +#include +#include +#include + #ifdef IP_RECVIF #include #endif @@ -491,10 +494,11 @@ int avahi_send_dns_packet_ipv4(int fd, int interface, AvahiDnsPacket *p, const A msg.msg_control = cmsg_data; msg.msg_controllen = sizeof(cmsg_data); } +#else +#ifdef __GNUC__ +#warning "FIXME: We need some code to set the outgoing interface here if IP_PKTINFO is not available" +#endif #endif - - /** FIXME: We need some code to set the outgoing interface here if - * IP_PKTINFO is not available */ return sendmsg_loop(fd, &msg, 0); } @@ -678,7 +682,6 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv6(int fd, struct sockaddr_in6 *ret_sa, uint8_t aux[64]; ssize_t l; int ms; - struct cmsghdr *cmsg; int found_ttl = 0, found_iface = 0;