It probably needs plenty more polishing, especially on !NetBSD. Python 2.4 will remain the default for some time. For the new features in Python 2.5, look here: * http://docs.python.org/whatsnew/whatsnew25.html
26 lines
523 B
Text
26 lines
523 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2008/04/24 01:50:58 tnn Exp $
|
|
|
|
--- Include/py_curses.h.orig 2003-06-29 11:46:21.000000000 -0400
|
|
+++ Include/py_curses.h
|
|
@@ -39,6 +39,21 @@
|
|
#endif
|
|
#endif
|
|
|
|
+#ifdef __NetBSD__
|
|
+/*
|
|
+** On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
|
|
+** against multiple definition of wchar_t and wint_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 <ncurses.h>
|
|
#else
|