From 0d24fd9f8579826fb51c6a8fbcbb68f243df235b Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 25 Feb 2012 12:22:32 +0100 Subject: [PATCH 2/4] ascii.c: Move auto out of the #if HAVE_DECL_SIGWINCH condtional Whether or not the width/length should be automatic should depend only on whether the output is a terminal, and not upon the existance of SIGWINCH --- src/output/ascii.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/ascii.c b/src/output/ascii.c index 7804ade..d121987 100644 --- a/src/output/ascii.c +++ b/src/output/ascii.c @@ -1085,19 +1085,19 @@ ascii_open_page (struct ascii_driver *a) a->file = fn_open (a->file_name, a->append ? "a" : "w"); if (a->file != NULL) { -#if HAVE_DECL_SIGWINCH if ( isatty (fileno (a->file))) { +#if HAVE_DECL_SIGWINCH struct sigaction action; sigemptyset (&action.sa_mask); action.sa_flags = 0; action.sa_handler = winch_handler; the_driver = a; + sigaction (SIGWINCH, &action, NULL); +#endif a->auto_width = true; a->auto_length = true; - sigaction (SIGWINCH, &action, NULL); } -#endif } else { -- 1.7.2.5