summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-10 19:53:37 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-10 19:53:37 (GMT)
commit858ca0f2293e6f7bb38e2935e44504baeed35a4f (patch)
tree9a4e26022afe2f92f15962ee6536b4346dd9e91c
parent9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8 (diff)
downloadcpython-858ca0f2293e6f7bb38e2935e44504baeed35a4f.zip
cpython-858ca0f2293e6f7bb38e2935e44504baeed35a4f.tar.gz
cpython-858ca0f2293e6f7bb38e2935e44504baeed35a4f.tar.bz2
Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.
Michael Hudson suggested this fox for the Tru64 problem (SF bug 232597). It looks reasonable, it works on Tru64, and it doesn't beak anything on Linux, so I say go for it.
-rw-r--r--Modules/_cursesmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index aa0b4f0..0cc0437 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -100,14 +100,15 @@ char *PyCursesVersion = "2.1";
/* Includes */
#include "Python.h"
-#define CURSES_MODULE
-#include "py_curses.h"
#ifdef __osf__
#define _XOPEN_SOURCE_EXTENDED /* Define macro for OSF/1 */
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
#endif
+#define CURSES_MODULE
+#include "py_curses.h"
+
/* These prototypes are in <term.h>, but including this header
#defines many common symbols (such as "lines") which breaks the
curses module in other ways. So the code will just specify