Ver código fonte

* When present, include <termios.h> and <unistd.h> to allow the ncurses

driver to build on Solaris. Fix courtesy of Rado S.
tags/v0.99.beta14
Sam Hocevar sam 17 anos atrás
pai
commit
dff5905a85
2 arquivos alterados com 5 adições e 3 exclusões
  1. +4
    -2
      caca/driver_ncurses.c
  2. +1
    -1
      configure.ac

+ 4
- 2
caca/driver_ncurses.c Ver arquivo

@@ -35,6 +35,9 @@
#include <stdlib.h>
#include <string.h>

#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#if defined HAVE_SIGNAL_H
# include <signal.h>
#endif
@@ -44,8 +47,7 @@
#if defined HAVE_LOCALE_H
# include <locale.h>
#endif

#ifndef TIOCGWINSZ
#if defined HAVE_TERMIOS_H
# include <termios.h>
#endif



+ 1
- 1
configure.ac Ver arquivo

@@ -75,7 +75,7 @@ AC_ARG_ENABLE(plugins,
AC_ARG_ENABLE(doc,
[ --enable-doc build documentation (needs doxygen and LaTeX)])

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)
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 termios.h)
AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons)
AC_CHECK_FUNCS(usleep gettimeofday)



Carregando…
Cancelar
Salvar