$NetBSD: patch-ac,v 1.1.1.1 2007/06/02 19:07:33 agc Exp $

--- xserver/os/access.c.orig	2008-03-13 14:34:48.000000000 +0000
+++ xserver/os/access.c
@@ -142,6 +142,11 @@ SOFTWARE.
 #endif
 
 #ifdef HAS_GETIFADDRS
+#include <sys/types.h>
+#  ifdef __NetBSD__
+#  include <sys/socket.h>
+typedef	unsigned int	u_int;
+#  endif
 #include <ifaddrs.h>
 #endif
 
