diff options
author | Paul Eggert <[email protected]> | 2013-07-23 09:08:57 +0100 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2013-07-23 09:08:57 +0100 |
commit | a29c3e6db03a411f1a09baff72f87650f9a8798f (patch) | |
tree | b6b6df5f0cea38390c4a4da43fd701fb110c2ae0 /src | |
parent | f274311c2cad468abbe4bdbb25362e2fe6ccb5c2 (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')
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/dispnew.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cc8d7f5ede..8a51744ba4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,11 @@ 2013-07-23 Paul Eggert <[email protected]> + Port to GNU/Linux systems with tinfo but not ncurses. + * 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. + * eval.c (Fprogn): Check that BODY is a proper list. Tune UNEVALLED functions by using XCAR instead of Fcar, etc. 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. */ |