fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot

This commit is contained in:
Victor Stinner 2013-08-28 01:51:06 +02:00
parent 55a1220bdb
commit b9981ba680
1 changed files with 2 additions and 0 deletions

View File

@ -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)