summaryrefslogtreecommitdiff
path: root/src/s
diff options
context:
space:
mode:
authorenami tsugutomo <tsugutomo.enami@jp.sony.com>2010-05-20 21:06:34 -0700
committerGlenn Morris <rgm@gnu.org>2010-05-20 21:06:34 -0700
commitf5b416d2ef84115b7b0690dfff48be7ce3b4d79a (patch)
tree0860f5b40b5d338674d13a551cbb034e022d8ad1 /src/s
parentaeb77d46603d3e2b302b377d0e354dff5625a9e6 (diff)
downloademacs-f5b416d2ef84115b7b0690dfff48be7ce3b4d79a.tar.gz
Backport from trunk: close bug#6190.
* src/s/netbsd.h: If terminfo is found, use it in preference to termcap.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/netbsd.h5
1 files changed, 5 insertions, 0 deletions
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 <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