$NetBSD: patch-ab,v 1.2 2007/06/30 15:22:09 joerg Exp $

--- xserver/os/osdep.h.orig	2008-03-13 14:34:48.000000000 +0000
+++ xserver/os/osdep.h
@@ -117,6 +117,12 @@ SOFTWARE.
 
 #include <stddef.h>
 #include <sys/types.h>
+#include <sys/param.h>
+
+#if (defined(BSD) && BSD >= 199506) && !defined(__DragonFly__)
+#include <sys/select.h>
+typedef __fd_mask	fd_mask;
+#endif
 
 typedef Bool (*ValidatorFunc)(ARRAY8Ptr Auth, ARRAY8Ptr Data, int packet_type);
 typedef Bool (*GeneratorFunc)(ARRAY8Ptr Auth, ARRAY8Ptr Data, int packet_type);
