classification
Title: termios fix for QNX breaks HP-UX
Type: compile error Stage:
Components: Build Versions: Python 2.7, Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: grobian, haubi
Priority: normal Keywords:

Created on 2009-06-18 16:22 by haubi, last changed 2010-01-16 19:57 by grobian.

Messages (2)
msg89507 - (view) Author: Michael Haubenwallner (haubi) Date: 2009-06-18 16:22
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!
msg97903 - (view) Author: Fabian Groffen (grobian) Date: 2010-01-16 19:57
still applies to 2.7
History
Date User Action Args
2010-01-16 19:57:43grobiansetnosy: + grobian

messages: + msg97903
versions: + Python 2.7
2009-06-18 16:22:22haubicreate