]> granicus.if.org Git - python/commitdiff
Issue #6308: Try to fix the termios build failure on HP-UX.
authorStefan Krah <skrah@bytereef.org>
Sun, 18 Nov 2012 23:07:18 +0000 (00:07 +0100)
committerStefan Krah <skrah@bytereef.org>
Sun, 18 Nov 2012 23:07:18 +0000 (00:07 +0100)
Include/pyport.h

index 944b83adff658d93b08a199b8383ee9093e78fab..8ccb250f5b52932adeaafe6f78245793a3587060 100644 (file)
@@ -646,7 +646,7 @@ extern char * _getpty(int *, int, mode_t, int);
 /* On QNX 6, struct termio must be declared by including sys/termio.h
    if TCGETA, TCSETA, TCSETAW, or TCSETAF are used.  sys/termio.h must
    be included before termios.h or it will generate an error. */
-#ifdef HAVE_SYS_TERMIO_H
+#if defined(HAVE_SYS_TERMIO_H) && !defined(__hpux)
 #include <sys/termio.h>
 #endif