$OpenBSD: patch-common_platform_h,v 1.4 2010/06/30 02:46:48 ajacoutot Exp $
--- common/platform.h.orig	Mon May 31 19:28:57 2010
+++ common/platform.h	Mon Jun 14 09:16:43 2010
@@ -53,9 +53,15 @@
 
   // We have to include this now in case select.h is included too soon.
   // Increase our maximum amount of file descriptors to 8192
+#if OPENBSD
+  #include <sys/types.h>
+  #undef FD_SETSIZE
+  #define FD_SETSIZE 1024
+#else
   #include <bits/types.h>
   #undef __FD_SETSIZE
   #define __FD_SETSIZE 8192
+#endif
 
   // Log the pthreads locks
   #define DEBUG_PTHREADS 0
