* Fixed an ifdef error that caused -t to be ignored.

This commit is contained in:
Sam Hocevar 2006-10-10 07:24:41 +00:00 committed by sam
parent 953021e2d6
commit 8a615087eb

View file

@ -23,7 +23,7 @@
#if defined(HAVE_GETOPT_H) #if defined(HAVE_GETOPT_H)
# include <getopt.h> # include <getopt.h>
#endif #endif
#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ) #if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TIOCGWINSZ)
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
@ -119,7 +119,7 @@ int main(int argc, char *argv[])
break; break;
case 't': /* --termwidth */ case 't': /* --termwidth */
{ {
#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ) #if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TIOCGWINSZ)
struct winsize ws; struct winsize ws;
if((ioctl(1, TIOCGWINSZ, &ws) != -1 || if((ioctl(1, TIOCGWINSZ, &ws) != -1 ||