diff -r 0372071d69cd src/microcode/tterm.c --- a/src/microcode/tterm.c Tue Mar 06 00:37:51 2012 +0100 +++ b/src/microcode/tterm.c Tue Mar 06 00:38:46 2012 +0100 @@ -51,10 +51,10 @@ macro expanding to a function call. WTF? Unix sucks. */ #undef ospeed -#if defined(HAVE_TERM_H) +#if defined(HAVE_TERMCAP_H) +# include +#elif defined(HAVE_TERM_H) # include -#elif defined(HAVE_TERMCAP_H) -# include #else extern int tgetent (char *, const char *); extern int tgetnum (const char *);