Browse code

- fix: compile problems in io_watch_add if ser is compiled on linux with NO_SIGIO=1 (patch from Ondrej Martinek <ondra@iptel.org>)

Andrei Pelinescu-Onciul authored on 19/02/2008 15:42:17
Showing 1 changed files
... ...
@@ -329,8 +329,10 @@ inline static int io_watch_add(	io_wait_h* h,
329 329
 #ifdef HAVE_DEVPOLL
330 330
 	struct pollfd pfd;
331 331
 #endif
332
-#if defined(HAVE_SIGIO_RT)
332
+#if defined(HAVE_SIGIO_RT) || defined (HAVE_EPOLL)
333 333
 	int n;
334
+#endif
335
+#if defined(HAVE_SIGIO_RT)
334 336
 	int idx;
335 337
 	int check_io;
336 338
 	struct pollfd pf;
... ...
@@ -464,7 +466,6 @@ again2:
464 464
 					strerror(errno), errno);
465 465
 				goto error;
466 466
 			}
467
-			idx=-1;
468 467
 			break;
469 468
 #endif
470 469
 #ifdef HAVE_KQUEUE