summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-07-23 09:08:57 +0100
committerPaul Eggert <eggert@cs.ucla.edu>2013-07-23 09:08:57 +0100
commita29c3e6db03a411f1a09baff72f87650f9a8798f (patch)
treeb6b6df5f0cea38390c4a4da43fd701fb110c2ae0 /src/dispnew.c
parentf274311c2cad468abbe4bdbb25362e2fe6ccb5c2 (diff)
Port to GNU/Linux systems with tinfo but not ncurses.
* configure.ac (USE_NCURSES): New symbol. * src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX, to decide whether ncurses is being used. Without this change, GCC complains about tgetent not being declared, on a system that has tinfo installed but ncurses not installed.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index ef75ed6d17..522a0e6a30 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6041,7 +6041,7 @@ init_display (void)
#ifdef HAVE_X11
Vwindow_system_version = make_number (11);
#endif
-#ifdef GNU_LINUX
+#ifdef USE_NCURSES
/* In some versions of ncurses,
tputs crashes if we have not called tgetent.
So call tgetent. */