Something went wrong. Try again.
The minimal stable base of the system
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869--- inetutils-2.5/telnetd/utility.c 2023-12-29 11:34:46.000000000 -0600+++ inet-utils-2.5-works/telnetd/utility.c 2024-10-05 08:59:31.451471852 -0600@@ -44,6 +44,12 @@ # endif #endif ++#ifdef HAVE_CURSES_NO_PROTOTYPE_BUT_YES_TGETENT+#include <term.h>+#endif+ + #if defined HAVE_STREAMSPTY && defined HAVE_GETMSG \ && defined HAVE_STROPTS_H # include <stropts.h>--- inetutils-2.5/telnet/telnet.c 2023-12-29 11:34:46.000000000 -0600+++ inet-utils-2.5-works/telnet/telnet.c 2024-10-05 08:56:16.983486581 -0600@@ -80,6 +80,8 @@ # endif #endif ++ #ifdef AUTHENTICATION # include <libtelnet/auth.h> #endif@@ -758,11 +760,16 @@ */ char termbuf[2048] = { 0 }; +#ifdef HAVE_CURSES_NO_PROTOTYPE_BUT_YES_TGETENT+#include <term.h>+#endif+ static int init_term (char *tname, int *errp) { int err = -1; + #ifdef HAVE_TGETENT err = tgetent (termbuf, tname); if (err == 1)--- inetutils-2.5/am/libcurses.m4 2022-12-31 18:35:18.000000000 -0600+++ inet-utils-2.5-works/am/libcurses.m4 2024-10-04 23:26:29.969075967 -0600@@ -130,11 +130,22 @@ #ifndef _XOPEN_CURSES # include <term.h> #endif]])+ if test "$ac_cv_lib_curses_tgetent" = yes \ && test "$ac_cv_have_decl_tgetent" = yes; then AC_DEFINE([HAVE_CURSES_TGETENT], 1) fi++ if test "$ac_cv_lib_curses_tgetent" = yes \+ && test "$ac_cv_have_decl_tgetent" = no; then+ AC_DEFINE([HAVE_CURSES_NO_PROTOTYPE_BUT_YES_TGETENT], 1, [curses defined but no prototype])+ fi+ + ++ fi+ if test "$ac_cv_lib_curses_tgetent" = no \ && test "$ac_cv_lib_termcap_tgetent" = no; then AC_CHECK_LIB(termlib, tgetent, LIBTERMCAP=-ltermlib)