$OpenBSD: patch-agent_interfaces_c,v 1.3 2011/03/02 07:32:04 jasper Exp $
--- agent/interfaces.c.orig	Wed Dec 15 01:53:05 2010
+++ agent/interfaces.c	Sat Feb 19 09:45:19 2011
@@ -49,6 +49,7 @@
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
 
 #ifdef HAVE_GETIFADDRS
 
@@ -197,7 +198,7 @@ nice_interfaces_get_local_ips (gboolean include_loopba
       struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
 
       /* Skip link-local addresses, they require a scope */
-      if (IN6_IS_ADDR_LINKLOCAL (sa6->sin6_addr.s6_addr))
+      if (IN6_IS_ADDR_LINKLOCAL ((struct in6_addr *)sa6->sin6_addr.s6_addr))
         continue;
 
       if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
