Module: sip-router Branch: ser_core_cvs Commit: f836b647ba8ef0bff1f7041c4cc6c9d6e41abff7 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f836b647...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Sun Jun 28 09:23:12 2009 +0000
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).
---
io_wait.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/io_wait.c b/io_wait.c index 7b53913..5adb8d2 100644 --- a/io_wait.c +++ b/io_wait.c @@ -29,7 +29,7 @@
-#ifdef USE_TCP /* for now it make sense only with tcp */ +#ifndef NO_IO_WAIT
#ifdef HAVE_EPOLL #include <unistd.h> /* close() */ @@ -631,4 +631,4 @@ void destroy_io_wait(io_wait_h* h)
-#endif +#endif /*ifndef NO_IO_WAIT */