diff options
| author | Paul Eggert | 2013-07-23 09:08:57 +0100 |
|---|---|---|
| committer | Paul Eggert | 2013-07-23 09:08:57 +0100 |
| commit | a29c3e6db03a411f1a09baff72f87650f9a8798f (patch) | |
| tree | b6b6df5f0cea38390c4a4da43fd701fb110c2ae0 /src | |
| parent | f274311c2cad468abbe4bdbb25362e2fe6ccb5c2 (diff) | |
| download | emacs-a29c3e6db03a411f1a09baff72f87650f9a8798f.tar.gz emacs-a29c3e6db03a411f1a09baff72f87650f9a8798f.zip | |
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 cc8d7f5edee..8a51744ba4b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2013-07-23 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2013-07-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Port to GNU/Linux systems with tinfo but not ncurses. | ||
| 4 | * dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX, | ||
| 5 | to decide whether ncurses is being used. Without this change, | ||
| 6 | GCC complains about tgetent not being declared, on a system | ||
| 7 | that has tinfo installed but ncurses not installed. | ||
| 8 | |||
| 3 | * eval.c (Fprogn): Check that BODY is a proper list. | 9 | * eval.c (Fprogn): Check that BODY is a proper list. |
| 4 | 10 | ||
| 5 | Tune UNEVALLED functions by using XCAR instead of Fcar, etc. | 11 | Tune UNEVALLED functions by using XCAR instead of Fcar, etc. |
diff --git a/src/dispnew.c b/src/dispnew.c index ef75ed6d176..522a0e6a30d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6041,7 +6041,7 @@ init_display (void) | |||
| 6041 | #ifdef HAVE_X11 | 6041 | #ifdef HAVE_X11 |
| 6042 | Vwindow_system_version = make_number (11); | 6042 | Vwindow_system_version = make_number (11); |
| 6043 | #endif | 6043 | #endif |
| 6044 | #ifdef GNU_LINUX | 6044 | #ifdef USE_NCURSES |
| 6045 | /* In some versions of ncurses, | 6045 | /* In some versions of ncurses, |
| 6046 | tputs crashes if we have not called tgetent. | 6046 | tputs crashes if we have not called tgetent. |
| 6047 | So call tgetent. */ | 6047 | So call tgetent. */ |