]> git.meshlink.io Git - catta/commitdiff
P_RECVIF portability for Solaris
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2006 10:16:09 +0000 (10:16 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2006 10:16:09 +0000 (10:16 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1226 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/socket.c

index 90e1d74846b4b9dbfdacd81ff221702b400b26b0..9291f0845ef4de8408cfa486f93a4826dd320fcf 100644 (file)
@@ -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;
                 }