Include either <term.h> or <termcap.h> but not both.
authorChris Hanson <org/chris-hanson/cph>
Mon, 5 Mar 2012 01:50:39 +0000 (17:50 -0800)
committerChris Hanson <org/chris-hanson/cph>
Mon, 5 Mar 2012 01:50:39 +0000 (17:50 -0800)
src/microcode/tterm.c

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