diff --git a/src/main.c b/src/main.c index b2c5335..e2c0472 100644 --- a/src/main.c +++ b/src/main.c @@ -28,7 +28,7 @@ extern int optind; static struct sound_driver *sound; -static unsigned int foreground_in = 1, foreground_out = 1; +static unsigned int foreground_in, foreground_out; static int refresh_status; @@ -87,6 +87,8 @@ static void sigcont_handler(int sig) /* Only call if it was not already prepared */ set_tty(); } +#else + foreground_in = foregound_out = 1; #endif if (sig != 0) @@ -439,6 +441,8 @@ int main(int argc, char **argv) #ifdef SIGTSTP sigcont_handler(0); +#else + foreground_in = foregound_out = 1; #endif if (foreground_out && opt.verbose > 0) { info_frame(&mi, &fi, &control, refresh_status);