$NetBSD$

--- src/nameinfo.c.orig	2010-03-22 15:32:43.000000000 +0100
+++ src/nameinfo.c	2010-03-22 15:31:57.000000000 +0100
@@ -40,7 +40,7 @@
 #include <sys/systemcfg.h>
 #endif
 
-#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
+#if defined (HAVE_STRUCT_SOCKADDR_SA_LEN) && !defined(__NetBSD__)
 # ifdef _SIZEOF_ADDR_IFREQ
 #  define SIZEOF_IFREQ(x) _SIZEOF_ADDR_IFREQ(x)
 # else
