$NetBSD: patch-ac,v 1.2 2009/07/24 12:10:18 obache 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
 
