[New-bugs-announce] [issue6308] termios fix for QNX breaks HP-UX

Michael Haubenwallner report at bugs.python.org
Thu Jun 18 18:22:23 CEST 2009


New submission from Michael Haubenwallner <michael.haubenwallner at salomon.at>:

The patch for issue 1722225 in Include/pyport.h to include
<sys/termio.h> before <termios.h> for QNX does break for HP-UX:
On HP-UX, 'struct termios' gets declared within <sys/termio.h>, but when
included via <termios.h> _only_. Due to the include guard, it does not
declare 'struct termios' when included via <termios.h> the second time.

This is Python-2.6.2, but the code looks unchanged in trunk. As I'm not
sure how best to fix this, for 2.6.2 here I go with:
-#ifdef HAVE_SYS_TERMIO_H
+#if defined(HAVE_SYS_TERMIO_H) && defined(__QNX__)

Thanks!

----------
components: Build
messages: 89507
nosy: haubi
severity: normal
status: open
title: termios fix for QNX breaks HP-UX
type: compile error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6308>
_______________________________________


More information about the New-bugs-announce mailing list