aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--src/terminal.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index cd828dedc9d..f86d29ed58b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1582,7 +1582,6 @@ fi
1582 1582
1583dnl checks for header files 1583dnl checks for header files
1584AC_CHECK_HEADERS_ONCE( 1584AC_CHECK_HEADERS_ONCE(
1585 linux/kd.h
1586 sys/systeminfo.h 1585 sys/systeminfo.h
1587 sys/sysinfo.h 1586 sys/sysinfo.h
1588 coff.h pty.h 1587 coff.h pty.h
@@ -3999,6 +3998,8 @@ AC_SUBST(KRB4LIB)
3999 3998
4000AC_CHECK_HEADERS(valgrind/valgrind.h) 3999AC_CHECK_HEADERS(valgrind/valgrind.h)
4001 4000
4001AC_CHECK_MEMBERS([struct unipair.unicode], [], [], [[#include <linux/kd.h>]])
4002
4002AC_CHECK_FUNCS_ONCE(tzset) 4003AC_CHECK_FUNCS_ONCE(tzset)
4003 4004
4004ok_so_far=yes 4005ok_so_far=yes
diff --git a/src/terminal.c b/src/terminal.c
index d7c16d9d036..80c6aa20bee 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -28,7 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#include "coding.h" 28#include "coding.h"
29#include "keyboard.h" 29#include "keyboard.h"
30 30
31#ifdef HAVE_LINUX_KD_H 31#if HAVE_STRUCT_UNIPAIR_UNICODE
32# include <errno.h> 32# include <errno.h>
33# include <linux/kd.h> 33# include <linux/kd.h>
34# include <sys/ioctl.h> 34# include <sys/ioctl.h>
@@ -532,7 +532,7 @@ selected frame's terminal). */)
532 return store_terminal_param (decode_live_terminal (terminal), parameter, value); 532 return store_terminal_param (decode_live_terminal (terminal), parameter, value);
533} 533}
534 534
535#if HAVE_LINUX_KD_H 535#if HAVE_STRUCT_UNIPAIR_UNICODE
536 536
537/* Compute the glyph code table for T. */ 537/* Compute the glyph code table for T. */
538 538
@@ -575,7 +575,7 @@ calculate_glyph_code_table (struct terminal *t)
575Lisp_Object 575Lisp_Object
576terminal_glyph_code (struct terminal *t, int ch) 576terminal_glyph_code (struct terminal *t, int ch)
577{ 577{
578#if HAVE_LINUX_KD_H 578#if HAVE_STRUCT_UNIPAIR_UNICODE
579 if (t->type == output_termcap) 579 if (t->type == output_termcap)
580 { 580 {
581 /* As a hack, recompute the table when CH is the maximum 581 /* As a hack, recompute the table when CH is the maximum