Prefer <termcap.h> to <term.h> if both are present.
authorChris Hanson <org/chris-hanson/cph>
Thu, 8 Mar 2012 07:09:06 +0000 (23:09 -0800)
committerChris Hanson <org/chris-hanson/cph>
Thu, 8 Mar 2012 07:09:06 +0000 (23:09 -0800)
src/microcode/tterm.c

index ee0d9a5f4fafc5d701faddc4ec71cf67723aca65..5a5d44c14f29564a0fc296df10c3e45122db4709 100644 (file)
@@ -51,10 +51,10 @@ USA.
    macro expanding to a function call.  WTF?  Unix sucks.  */
 #undef ospeed
 
-#if defined(HAVE_TERM_H)
-#  include <term.h>
-#elif defined(HAVE_TERMCAP_H)
+#if defined(HAVE_TERMCAP_H)
 #  include <termcap.h>
+#elif defined(HAVE_TERM_H)
+#  include <term.h>
 #else
    extern int tgetent (char *, const char *);
    extern int tgetnum (const char *);