diff options
| author | Dan Nicolaescu | 2010-11-13 14:17:22 -0800 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-11-13 14:17:22 -0800 |
| commit | ff2e8052fda9c0710e0b9088080e6e351c02e338 (patch) | |
| tree | 80c84db05e02c64fe1324502d73847c898f246b6 /src | |
| parent | 53260a945a9bb0e2fbe7f9b668f1e0bf633620f3 (diff) | |
| download | emacs-ff2e8052fda9c0710e0b9088080e6e351c02e338.tar.gz emacs-ff2e8052fda9c0710e0b9088080e6e351c02e338.zip | |
Fix compilation on Solaris.
* src/sysdep.c: Do not #include <term.h>.
(tputs): Add declaration, similar to what cm.c does. (Bug#7178)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/sysdep.c | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8a7c27637e3..26a6c4c5b83 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | Fix compilation on Solaris. | ||
| 4 | |||
| 5 | * sysdep.c: Do not #include <term.h>. | ||
| 6 | (tputs): Add declaration, similar to what cm.c does. (Bug#7178) | ||
| 7 | |||
| 3 | * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore. | 8 | * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore. |
| 4 | 9 | ||
| 5 | 2010-11-13 Jan Djärv <jan.h.d@swipnet.se> | 10 | 2010-11-13 Jan Djärv <jan.h.d@swipnet.se> |
diff --git a/src/sysdep.c b/src/sysdep.c index f68d475d22c..84fa6d6b3b7 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -90,12 +90,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 90 | #include "dispextern.h" | 90 | #include "dispextern.h" |
| 91 | #include "process.h" | 91 | #include "process.h" |
| 92 | #include "cm.h" /* for reset_sys_modes */ | 92 | #include "cm.h" /* for reset_sys_modes */ |
| 93 | #ifdef HAVE_TERM_H | ||
| 94 | /* Include this last. If it is ncurses header file, it adds a lot of | ||
| 95 | defines that interfere with stuff in other headers. Someone responsible | ||
| 96 | for ncurses messed up bigtime. See bug#6812. */ | ||
| 97 | #include <term.h> | ||
| 98 | #endif | ||
| 99 | 93 | ||
| 100 | #ifdef WINDOWSNT | 94 | #ifdef WINDOWSNT |
| 101 | #include <direct.h> | 95 | #include <direct.h> |
| @@ -123,6 +117,9 @@ struct utimbuf { | |||
| 123 | #endif | 117 | #endif |
| 124 | #endif | 118 | #endif |
| 125 | 119 | ||
| 120 | /* Declare here, including term.h is problematic on some systems. */ | ||
| 121 | extern void tputs (const char *, int, int (*)(int)); | ||
| 122 | |||
| 126 | static const int baud_convert[] = | 123 | static const int baud_convert[] = |
| 127 | { | 124 | { |
| 128 | 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, | 125 | 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, |
| @@ -3071,6 +3068,3 @@ system_process_attributes (Lisp_Object pid) | |||
| 3071 | 3068 | ||
| 3072 | #endif /* !defined (WINDOWSNT) */ | 3069 | #endif /* !defined (WINDOWSNT) */ |
| 3073 | 3070 | ||
| 3074 | |||
| 3075 | /* arch-tag: edb43589-4e09-4544-b325-978b5b121dcf | ||
| 3076 | (do not change this comment) */ | ||