From: Lennart Poettering Date: Thu, 22 Jun 2006 10:16:09 +0000 (+0000) Subject: P_RECVIF portability for Solaris X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e2847ebc0efccbc368af59d53863b7c54c1970da;p=catta P_RECVIF portability for Solaris git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1226 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 90e1d74..9291f08 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -714,7 +714,11 @@ AvahiDnsPacket *avahi_recv_dns_packet_ipv4(int fd, AvahiIPv4Address *ret_src_add struct sockaddr_dl *sdl = (struct sockaddr_dl *) CMSG_DATA (cmsg); if (ret_iface) +#ifdef __sun + *ret_iface = *(uint_t*) sdl; +#else *ret_iface = (int) sdl->sdl_index; +#endif break; }