changeset 27254:6fa76e47a88e

Fix tgetent call in termcap configure test.
author diego
date Tue, 15 Jul 2008 09:17:07 +0000
parents 383b0dc26242
children aff85d51de87
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 15 09:07:31 2008 +0000
+++ b/configure	Tue Jul 15 09:17:07 2008 +0000
@@ -3285,8 +3285,9 @@
 echocheck "termcap"
 if test "$_termcap" = auto ; then
   cat > $TMPC <<EOF
+#include <stddef.h>
 #include <term.h>
-int main(void) { tgetent(); return 0; }
+int main(void) { tgetent(NULL, NULL); return 0; }
 EOF
   _termcap=no
   for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do