]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/src/kqueue.c
sync libratbox - r25599 + charybdis packaging patch
[irc/rqf/shadowircd.git] / libratbox / src / kqueue.c
index fe56a687b2c1c35f0e7acf3dda66e17fb9dbc260..51d92c8f7208833939ba6a07bbc1f3d818763ec2 100644 (file)
@@ -22,7 +22,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: kqueue.c 25038 2008-01-23 16:03:08Z androsyn $
+ *  $Id: kqueue.c 25364 2008-05-14 17:55:22Z jilles $
  */
 
 #include <libratbox_config.h>
@@ -285,6 +285,8 @@ rb_select_kqueue(long delay)
        }
        return RB_OK;
 }
+
+#if defined(KQUEUE_SCHED_EVENT)
 static int can_do_event = 0;
 int
 rb_kqueue_supports_event(void)
@@ -343,6 +345,7 @@ rb_kqueue_init_event(void)
 {
        return;
 }
+#endif /* KQUEUE_SCHED_EVENT */
 
 #else /* kqueue not supported */
 int