From: Stefan Krah Date: Sun, 18 Nov 2012 23:07:18 +0000 (+0100) Subject: Issue #6308: Try to fix the termios build failure on HP-UX. X-Git-Tag: v3.4.0a1~1978 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cbbed6541d7d79176ff7dcd0eafcada95b4fa80;p=python Issue #6308: Try to fix the termios build failure on HP-UX. --- diff --git a/Include/pyport.h b/Include/pyport.h index 944b83adff..8ccb250f5b 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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 #endif