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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9981ba680de8487ffa7ffb0ee216e82030e6304;p=python fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 65701429d8..df0d81b02e 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)