소스 검색

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

pull/1/head
Sam Hocevar sam 19 년 전
부모
커밋
8a615087eb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/main.c

+ 2
- 2
src/main.c 파일 보기

@@ -23,7 +23,7 @@
#if defined(HAVE_GETOPT_H)
# include <getopt.h>
#endif
#if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ)
#if defined(HAVE_SYS_IOCTL_H) && defined(HAVE_TIOCGWINSZ)
# include <sys/ioctl.h>
#endif
#include <stdio.h>
@@ -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 ||


불러오는 중...
취소
저장