Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e16d0c94ff2c9e93ba4eea60f7b68478 > files > 37

krb5-1.6.1-70.el5_9.2.src.rpm

Prevent an incompatible declaration for setupterm(), declared for curses
in <term.h>, from being used when we're building with termcap.

--- krb5/src/appl/telnet/telnet/telnet.c	2005-03-15 19:26:12.676150256 -0500
+++ krb5/src/appl/telnet/telnet/telnet.c	2005-03-15 19:26:07.382841519 -0500
@@ -52,9 +52,13 @@
 #include <curses.h>
 #endif
 
+#ifndef TERMCAP
 #ifdef HAVE_TERM_H
 #include <term.h>
 #endif
+#else
+#include <termcap.h>
+#endif
 
 #include <arpa/telnet.h>