From: Victor Stinner Date: Tue, 27 Aug 2013 23:51:06 +0000 (+0200) Subject: fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot X-Git-Tag: v3.4.0a2~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9981ba680de8487ffa7ffb0ee216e82030e6304;p=thirdparty%2FPython%2Fcpython.git fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 65701429d8b0..df0d81b02ec1 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)