From 4804a7c5ff144fc7cc974484d16f2f88cc131264 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 3 Jun 2015 23:53:47 +0200 Subject: 35360 (replacing 35357): fix for configuring zpty on FreeBSD without pty.ko loaded --- ChangeLog | 5 +++++ Src/Modules/zpty.c | 2 +- configure.ac | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ee19b99d..24ec700f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-06-03 Oliver Kiddle + + * 35360 (replacing 35357): configure.ac, Src/Modules/zpty.c: + fix for configuring zpty on FreeBSD without pty.ko loaded + 2015-06-03 Peter Stephenson * 35374: Test/D07multibyte.ztst: add tab expansion test with diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c index a77b0df75..7b6130c6f 100644 --- a/Src/Modules/zpty.c +++ b/Src/Modules/zpty.c @@ -154,7 +154,7 @@ getptycmd(char *name) return NULL; } -#if defined(USE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) +#ifdef USE_DEV_PTMX #ifdef HAVE_SYS_STROPTS_H #include diff --git a/configure.ac b/configure.ac index 6a99aec1d..d7db8ba8d 100644 --- a/configure.ac +++ b/configure.ac @@ -2526,7 +2526,7 @@ dnl these is by defining _GNU_SOURCE. dnl ------- AH_TEMPLATE([USE_DEV_PTMX], [Define to 1 if all the kit for using /dev/ptmx for ptys is available.]) -if test x$ac_cv_have_dev_ptmx = xyes && \ +if test x$ac_cv_have_dev_ptmx = xyes -o x$ac_cv_func_posix_openpt = xyes && \ test x$ac_cv_func_grantpt = xyes && \ test x$ac_cv_func_unlockpt = xyes && \ test x$ac_cv_func_ptsname = xyes; then -- cgit 1.4.1