]> granicus.if.org Git - python/commitdiff
fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Aug 2013 23:51:06 +0000 (01:51 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Aug 2013 23:51:06 +0000 (01:51 +0200)
Modules/posixmodule.c

index 65701429d8b088ccf48b95371b8e7566df7148a9..df0d81b02ec1f7b02821cb09ec332c8c9fecd9d5 100644 (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)