From 0dc144649c5fdf8edfb919d437b1c7259340e219 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 16 Apr 2010 02:38:16 +0200 Subject: [PATCH] openpty: Fix mistake from 2010-03-21. (cherry picked from commit e764ea2fcb9a6247ae4dc0d4c0566b43d950a694) --- ChangeLog | 6 ++++++ m4/pty.m4 | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf8bd0bf1..abcd239fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-15 Bruno Haible + + openpty: Fix mistake from 2010-03-21. + * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists. + Reported by Simon Josefsson. + 2010-04-15 Eric Blake test-forkpty: fix expected signature diff --git a/m4/pty.m4 b/m4/pty.m4 index 355db2871..617b1b90f 100644 --- a/m4/pty.m4 +++ b/m4/pty.m4 @@ -1,4 +1,4 @@ -# pty.m4 serial 6 +# pty.m4 serial 7 dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -119,6 +119,8 @@ AC_DEFUN([gl_FUNC_OPENPTY], if test $gl_cv_func_openpty_const != yes; then REPLACE_OPENPTY=1 AC_LIBOBJ([openpty]) + AC_DEFINE([HAVE_OPENPTY], [1], + [Define to 1 if the system has the 'openpty' function.]) fi else dnl The system does not have openpty. -- 2.11.0