summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-08-27 23:51:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-08-27 23:51:06 (GMT)
commitb9981ba680de8487ffa7ffb0ee216e82030e6304 (patch)
tree68a5b570cc991ab13ac5ef87879125f789c6aaf4 /Modules
parent55a1220bdbdff64320a906f0e09ca7644eeb445f (diff)
downloadcpython-b9981ba680de8487ffa7ffb0ee216e82030e6304.zip
cpython-b9981ba680de8487ffa7ffb0ee216e82030e6304.tar.gz
cpython-b9981ba680de8487ffa7ffb0ee216e82030e6304.tar.bz2
fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 6570142..df0d81b 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5837,7 +5837,9 @@ posix_openpty(PyObject *self, PyObject *noargs)
posix_error:
posix_error();
+#if defined(HAVE_OPENPTY) || defined(HAVE__GETPTY)
error:
+#endif
if (master_fd != -1)
close(master_fd);
if (slave_fd != -1)