(original) (raw)

diff -ru python.orig/Include/py_curses.h python/Include/py_curses.h --- python.orig/Include/py_curses.h 2003-06-29 08:46:21.000000000 -0700 +++ python/Include/py_curses.h 2007-05-24 16:37:49.000000000 -0700 @@ -39,6 +39,21 @@ #endif #endif +#ifdef __QNXNTO__ +/* +** On QNX, [n]curses.h and stdlib.h use different guards +** against multiple definition of wchar_t. +*/ +#ifdef _XOPEN_SOURCE_EXTENDED +#ifndef _WCHAR_T +#define _WCHAR_T +#endif +#ifndef _WINT_T +#define _WINT_T +#endif +#endif +#endif + #ifdef HAVE_NCURSES_H #include #else diff -ru python.orig/configure.in python/configure.in --- python.orig/configure.in 2007-03-12 03:50:39.000000000 -0700 +++ python/configure.in 2007-05-24 17:14:17.000000000 -0700 @@ -244,6 +244,11 @@ Darwin/@<:@789@:>@.*) define_xopen_source=no ;; + # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from + # defining NI_NUMERICHOST. + QNX/6.3.2) + define_xopen_source=no + ;; esac @@ -1526,7 +1531,7 @@ fi fi ;; - Linux*|GNU*) LDSHARED='$(CC) -shared';; + Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; BSD/OS*/4*) LDSHARED="gcc -shared";; FreeBSD*) if [[ "`$CC -dM -E -