--- a/configure
+++ b/configure
@@ -55104,9 +55104,7 @@ else $as_nop
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <curses.h>
-#ifndef _XOPEN_CURSES
 # include <term.h>
-#endif
 int
 main (void)
 {
@@ -55178,9 +55176,7 @@ then :
 fi
 
       ac_fn_check_decl "$LINENO" "tgetent" "ac_cv_have_decl_tgetent" "#include <curses.h>
-#ifndef _XOPEN_CURSES
 # include <term.h>
-#endif
 " "$ac_c_undeclared_builtin_options" "CFLAGS"
 if test "x$ac_cv_have_decl_tgetent" = xyes
 then :
--- a/telnet/telnet.c
+++ b/telnet/telnet.c
@@ -75,9 +75,7 @@
 # include <termcap.h>
 #elif defined HAVE_CURSES_TGETENT
 # include <curses.h>
-# ifndef _XOPEN_CURSES
 #  include <term.h>
-# endif
 #endif
 
 #ifdef AUTHENTICATION
--- a/telnetd/utility.c
+++ b/telnetd/utility.c
@@ -39,9 +39,7 @@
 # include <termcap.h>
 #elif defined HAVE_CURSES_TGETENT
 # include <curses.h>
-# ifndef _XOPEN_CURSES
 #  include <term.h>
-# endif
 #endif
 
 #if defined HAVE_STREAMSPTY && defined HAVE_GETMSG	\
