Browse code

core: compile io_wait support even if -DUSE_TCP is not set

io_wait is needed now also by the ctl module, so it should be
compiled even if no tcp support is desired.
Its compilation can be turned off if NO_IO_WAIT is defined
(but in this case one must make sure so no other piece of code
using it will be compiled).

Andrei Pelinescu-Onciul authored on 28/06/2009 09:23:12
Showing 1 changed files
... ...
@@ -29,7 +29,7 @@
29 29
 
30 30
 
31 31
 
32
-#ifdef USE_TCP /* for now it make sense only with tcp */
32
+#ifndef NO_IO_WAIT
33 33
 
34 34
 #ifdef HAVE_EPOLL
35 35
 #include <unistd.h> /* close() */
... ...
@@ -631,4 +631,4 @@ void destroy_io_wait(io_wait_h* h)
631 631
 
632 632
 
633 633
 
634
-#endif
634
+#endif /*ifndef NO_IO_WAIT */