Index: configs/default
--- configs/default.orig	2009-05-14 21:19:17 +0200
+++ configs/default	2009-05-28 19:52:00 +0200
@@ -27,8 +27,8 @@
 # Misc tools and flags
 SHELL = /bin/sh
 MKLIB = $(SHELL) $(TOP)/bin/mklib
-MKLIB_OPTIONS = 
-MKDEP = makedepend
+MKLIB_OPTIONS = -static
+MKDEP = @l_x11bindir@/makedepend
 MKDEP_OPTIONS = -fdepend
 MAKE = make
 INSTALL = $(SHELL) $(TOP)/bin/minstall
Index: src/glut/glx/glut_event.c
--- src/glut/glx/glut_event.c.orig	2009-03-13 04:28:49 +0100
+++ src/glut/glx/glut_event.c	2009-05-28 19:52:00 +0200
@@ -24,7 +24,7 @@
 # ifdef __sgi
 #  include <bstring.h>    /* prototype for bzero used by FD_ZERO */
 # endif
-# if (defined(__FreeBSD__) || defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE)
+# if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE)
 #  include <sys/select.h> /* select system call interface */
 #  ifdef luna
 #   include <sysent.h>
