From f5b416d2ef84115b7b0690dfff48be7ce3b4d79a Mon Sep 17 00:00:00 2001 From: enami tsugutomo Date: Thu, 20 May 2010 21:06:34 -0700 Subject: [PATCH] Backport from trunk: close bug#6190. * src/s/netbsd.h: If terminfo is found, use it in preference to termcap. --- src/ChangeLog | 5 +++++ src/s/netbsd.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 929cea2832a..ddf73eaf3c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-05-20 enami tsugutomo + + * s/netbsd.h: If terminfo is found, use it in preference to + termcap. (Bug#6190) [Backport from trunk] + 2010-05-20 Kevin Ryde * keyboard.c (Vlast_command, Vkeyboard_translate_table) diff --git a/src/s/netbsd.h b/src/s/netbsd.h index 17d3b33451e..132fc137e50 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h @@ -45,7 +45,12 @@ along with GNU Emacs. If not, see . */ #define LIBS_DEBUG /* -lutil is not needed for NetBSD >0.9. */ /* #define LIBS_SYSTEM -lutil */ +#ifdef HAVE_TERM_H +#define TERMINFO +#define LIBS_TERMCAP -lterminfo +#else #define LIBS_TERMCAP -ltermcap +#endif #define NEED_ERRNO #define SYSV_SYSTEM_DIR -- 2.39.2