summaryrefslogtreecommitdiff
path: root/src/s/netbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s/netbsd.h')
-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