# HG changeset patch # User Glenn Morris # Date 1274414794 25200 # Node ID 45004fc2d3e8723fc55686733445df0ebf8532c3 # Parent 1561cf68ce2abb7605ff1a7d85622601600be1c4 Backport from trunk: close bug#6190. * src/s/netbsd.h: If terminfo is found, use it in preference to termcap. diff -r 1561cf68ce2a -r 45004fc2d3e8 src/ChangeLog --- a/src/ChangeLog Thu May 20 10:50:32 2010 -0400 +++ b/src/ChangeLog Thu May 20 21:06:34 2010 -0700 @@ -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 -r 1561cf68ce2a -r 45004fc2d3e8 src/s/netbsd.h --- a/src/s/netbsd.h Thu May 20 10:50:32 2010 -0400 +++ b/src/s/netbsd.h Thu May 20 21:06:34 2010 -0700 @@ -45,7 +45,12 @@ #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