openpty: fix bug where HAVE_OPENPTY is mistakenly 1
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Feb 2013 16:03:23 +0000 (08:03 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Feb 2013 16:04:03 +0000 (08:04 -0800)
commit1b3c9c2dcf3cfee9798d1af79c60927b7e67089c
tree52f312eecc556754b8c728512b455d1cd4f5681f
parentbc9cbdfbd04f3939e90a3567d895b2ba3e4224a4
openpty: fix bug where HAVE_OPENPTY is mistakenly 1

Problem reported by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
* m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
openpty function exists, not merely when we intend to replace it.
This corrects the 2013-01-31 patch, which mistakenly defined
HAVE_OPENPTY even on hosts that lacked it.
ChangeLog
m4/pty.m4