Ignore:
Timestamp:
Apr 21, 2006, 2:01:14 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Do not use ncurses' TIOCGWINSZ handler if <sys/ioctl.h> is not here.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_ncurses.c

    r819 r822  
    207207    struct winsize size;
    208208
     209#if defined(HAVE_SYS_IOCTL_H)
    209210    if(ioctl(fileno(stdout), TIOCGWINSZ, &size) == 0)
    210211    {
     
    219220        return;
    220221    }
     222#endif
    221223
    222224    /* Fallback */
Note: See TracChangeset for help on using the changeset viewer.