From 8a615087ebc424e52a8ea3c1f1c050101a7ad708 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 10 Oct 2006 07:24:41 +0000 Subject: [PATCH] * Fixed an ifdef error that caused -t to be ignored. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fdfdefa..477d703 100644 --- a/src/main.c +++ b/src/main.c @@ -23,7 +23,7 @@ #if defined(HAVE_GETOPT_H) # include #endif -#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ) +#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TIOCGWINSZ) # include #endif #include @@ -119,7 +119,7 @@ int main(int argc, char *argv[]) break; case 't': /* --termwidth */ { -#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ) +#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TIOCGWINSZ) struct winsize ws; if((ioctl(1, TIOCGWINSZ, &ws) != -1 ||