Changeset 1851


Ignore:
Timestamp:
Oct 28, 2007, 11:20:11 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • When present, include <termios.h> and <unistd.h> to allow the ncurses driver to build on Solaris. Fix courtesy of Rado S.
Location:
libcaca/trunk
Files:
2 edited

Legend:

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

    r1837 r1851  
    3636#include <string.h>
    3737
     38#if defined HAVE_UNISTD_H
     39#   include <unistd.h>
     40#endif
    3841#if defined HAVE_SIGNAL_H
    3942#   include <signal.h>
     
    4548#   include <locale.h>
    4649#endif
    47 
    48 #ifndef TIOCGWINSZ
     50#if defined HAVE_TERMIOS_H
    4951#   include <termios.h>
    5052#endif
  • libcaca/trunk/configure.ac

    r1829 r1851  
    7676  [  --enable-doc            build documentation (needs doxygen and LaTeX)])
    7777
    78 AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h)
     78AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h)
    7979AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons)
    8080AC_CHECK_FUNCS(usleep gettimeofday)
Note: See TracChangeset for help on using the changeset viewer.