diff src/event/ngx_event.c @ 39:83fa61cd3d2f

nginx-0.0.1-2002-12-24-20:30:59 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 24 Dec 2002 17:30:59 +0000
parents 2ffaa35fba42
children 0e81ac0bb3e2
line wrap: on
line diff
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -15,6 +15,9 @@
 #if (HAVE_POLL)
 #include <ngx_poll_module.h>
 #endif
+#if (HAVE_DEVPOLL)
+#include <ngx_devpoll_module.h>
+#endif
 #if (HAVE_KQUEUE)
 #include <ngx_kqueue_module.h>
 #endif
@@ -29,18 +32,20 @@ ngx_event_t         *ngx_read_events, *n
 
 #if 0
 ngx_event_type_e     ngx_event_type = NGX_SELECT_EVENT;
-#elif 1
+#elif 0
 ngx_event_type_e     ngx_event_type = NGX_POLL_EVENT;
 #else
 ngx_event_type_e     ngx_event_type = NGX_KQUEUE_EVENT;
 #endif
 
-#elif (HAVE_POLL)
+#elif (HAVE_DEVPOLL)
 
 #if 0
 ngx_event_type_e     ngx_event_type = NGX_SELECT_EVENT;
+#elif 0
+ngx_event_type_e     ngx_event_type = NGX_POLL_EVENT;
 #else
-ngx_event_type_e     ngx_event_type = NGX_POLL_EVENT;
+ngx_event_type_e     ngx_event_type = NGX_DEVPOLL_EVENT;
 #endif
 
 #else
@@ -57,6 +62,9 @@ static int (*ngx_event_init[]) (int max_
 #if (HAVE_POLL)
     ngx_poll_init,
 #endif
+#if (HAVE_DEVPOLL)
+    ngx_devpoll_init,
+#endif
 #if (HAVE_KQUEUE)
     ngx_kqueue_init
 #endif