--- Xpoll.h.in.orig	2009-05-25 12:02:09.000000000 -0500
+++ Xpoll.h.in	2009-05-25 12:02:58.000000000 -0500
@@ -91,7 +91,7 @@
 
 #ifdef CSRG_BASED
 #include <sys/param.h>
-# if BSD < 199103
+# if BSD < 199103  || defined(__APPLE__)
 typedef long fd_mask;
 # endif
 #endif
