From e2847ebc0efccbc368af59d53863b7c54c1970da Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Jun 2006 10:16:09 +0000 Subject: [PATCH] P_RECVIF portability for Solaris git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1226 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/socket.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5