[Python-checkins] cpython (merge 3.5 -> default): Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().

gregory.p.smith python-checkins at python.org
Sat May 28 17:06:50 EDT 2016


https://hg.python.org/cpython/rev/74fcfc29187e
changeset:   101546:74fcfc29187e
parent:      101544:0c3fdb161901
parent:      101545:c8e113bf56ae
user:        Gregory P. Smith <greg at krypto.org> [Google Inc.]
date:        Sat May 28 21:06:41 2016 +0000
summary:
  Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().

files:
  Modules/posixmodule.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -38,6 +38,8 @@
 #undef HAVE_FACCESSAT
 #endif
 
+#include <stdio.h>  /* needed for ctermid() */
+
 #ifdef __cplusplus
 extern "C" {
 #endif

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list