summaryrefslogtreecommitdiff
path: root/ext/posix
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-07-30 18:34:34 +0200
committerNikita Popov <nikic@php.net>2016-07-30 18:34:34 +0200
commitc9d3ff0c6e86398b9471428ab49c6a6fa47ae977 (patch)
treed5cab0da3d098a2cb629ec6e3cf18d93a97aab28 /ext/posix
parent14d674442ef86ad4e862228a1ff5ecd322ae7759 (diff)
downloadphp-git-c9d3ff0c6e86398b9471428ab49c6a6fa47ae977.tar.gz
Revert "Fixed bug #71219"
This reverts commit 14d674442ef86ad4e862228a1ff5ecd322ae7759. I misread the discussion on the bug -- this is not the correct fix. However the other proposed fix does not work either, so just reverting for now.
Diffstat (limited to 'ext/posix')
-rw-r--r--ext/posix/config.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4
index eb0d1dbf1c..82b80ce972 100644
--- a/ext/posix/config.m4
+++ b/ext/posix/config.m4
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
{
char buf[64];
- return !ttyname_r(0, buf, 64);
+ return ttyname_r(0, buf, 64) ? 1 : 0;
}
],[
AC_MSG_RESULT([yes])