diff --git a/src/main/select.c b/src/main/select.c index 9a8acd51..c19b5c08 100644 --- a/src/main/select.c +++ b/src/main/select.c @@ -522,9 +522,10 @@ select_loop(void (*init)(void)) if (!event_enabled) { restrict_fds(); } +#endif #endif periodic_redraw_all_terminals(NULL); - +#ifdef USE_LIBEVENT if (event_enabled) { while (!program.terminate) { check_signals(); @@ -537,7 +538,6 @@ select_loop(void (*init)(void)) } } else #endif - while (!program.terminate) { struct timeval *timeout = NULL; int n, i, has_timer;