From 3df0c7b81e570741a3f4406de92c75274dbf7852 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 31 Dec 2009 18:10:53 +0100 Subject: [PATCH] configure.in: check for sys/stropts.h header instead of grantpt function Apparently, NetBSD has a grantpt function, but no sys/stropts.h header and so we shouldn't use System V pty calls on NetBSD. Problem reported by Peter Bex --- dist/configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/configure.in b/dist/configure.in index f0f9e607..0033bb24 100644 --- a/dist/configure.in +++ b/dist/configure.in @@ -791,13 +791,13 @@ fi AC_MSG_RESULT($vi_cv_gettimeofday) dnl Check for which version of openpty to use, System V or Berkeley. -AC_MSG_CHECKING(for System V pty calls) AC_CACHE_VAL(vi_cv_sys5_pty, [dnl -AC_TRY_LINK(, [grantpt(0);], +AC_CHECK_HEADER(sys/stropts.h, [vi_cv_sys5_pty=yes], [vi_cv_sys5_pty=no])]) if test "$vi_cv_sys5_pty" = yes; then AC_DEFINE(HAVE_SYS5_PTY) fi +AC_MSG_CHECKING(for System V pty calls) AC_MSG_RESULT($vi_cv_sys5_pty) dnl Check for the revoke system call. -- 2.11.4.GIT