Backport from trunk: close bug#6190.
authorenami tsugutomo <tsugutomo.enami@jp.sony.com>
Fri, 21 May 2010 04:06:34 +0000 (21:06 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 May 2010 04:06:34 +0000 (21:06 -0700)
* src/s/netbsd.h: If terminfo is found, use it in preference to termcap.

src/ChangeLog
src/s/netbsd.h

index 929cea2..ddf73ea 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
+
+       * s/netbsd.h: If terminfo is found, use it in preference to
+       termcap.  (Bug#6190)  [Backport from trunk]
+
 2010-05-20  Kevin Ryde  <user42@zip.com.au>
 
        * keyboard.c (Vlast_command, Vkeyboard_translate_table)
index 17d3b33..132fc13 100644 (file)
@@ -45,7 +45,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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