php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #71219
Patch php-7.0.1-ttyname_r-test.patch revision 2015-12-26 17:14 UTC by atoth at atoth dot sote dot hu
Patch php-5.6.16-ttyname_r-test.patch revision 2015-12-26 17:13 UTC by atoth at atoth dot sote dot hu
Patch php-ttyname_r-test.patch revision 2015-12-25 18:35 UTC by atoth at atoth dot sote dot hu

Patch php-7.0.1-ttyname_r-test.patch for *Compile Issues Bug #71219

Patch version 2015-12-26 17:14 UTC

Return to Bug #71219 | Download this patch
Patch Revisions:

Developer: atoth@atoth.sote.hu

diff -urN php-7.0.1-orig/configure php-5.6.16-dwok/configure
--- php-7.0.1-orig/configure	2015-11-26 00:43:26.000000000 +0100
+++ php-7.0.1-dwok/configure	2015-12-25 19:10:27.537985626 +0100
@@ -70610,7 +70610,7 @@
 {
 	char buf[64];
 
-	return ttyname_r(0, buf, 64) ? 1 : 0;
+	return ttyname_r(1, buf, 64) ? 1 : 0;
 }
 
 _ACEOF
diff -urN php-7.0.1-orig/ext/posix/config.m4 php-5.6.16-dwok/ext/posix/config.m4
--- php-7.0.1-orig/ext/posix/config.m4	2015-11-25 21:28:38.000000000 +0100
+++ php-7.0.1-dwok/ext/posix/config.m4	2015-12-25 19:10:40.854128401 +0100
@@ -21,7 +21,7 @@
 {
 	char buf[64];
 
-	return ttyname_r(0, buf, 64) ? 1 : 0;
+	return ttyname_r(1, buf, 64) ? 1 : 0;
 }
   ],[
     AC_MSG_RESULT([yes])
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC