summaryrefslogtreecommitdiff
path: root/lang/python23/patches/patch-am
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2003-09-14 14:04:31 +0000
committerrecht <recht@pkgsrc.org>2003-09-14 14:04:31 +0000
commit9b36f82e484d38232ad4c52bc30e1cd947494f8f (patch)
tree1fcf9226fc3324bff41ac2463e5d3ddf8be0f696 /lang/python23/patches/patch-am
parent0c330b09b1e1ea003993b75633cc3cb899d66662 (diff)
downloadpkgsrc-9b36f82e484d38232ad4c52bc30e1cd947494f8f.tar.gz
Avoid redefinition of redefinition of wchar_t and wint_ if
_XOPEN_SOURCE_EXTENDED is defined. This fixes py-curses on NetBSD > 1.6T. Bumb PKGREVSION to 2, because of the header change.
Diffstat (limited to 'lang/python23/patches/patch-am')
-rw-r--r--lang/python23/patches/patch-am26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/python23/patches/patch-am b/lang/python23/patches/patch-am
new file mode 100644
index 00000000000..ea98e493948
--- /dev/null
+++ b/lang/python23/patches/patch-am
@@ -0,0 +1,26 @@
+$NetBSD: patch-am,v 1.1 2003/09/14 14:04:31 recht Exp $
+
+--- Include/py_curses.h.orig 2003-09-14 13:55:07.000000000 +0200
++++ Include/py_curses.h 2003-09-14 14:10:49.000000000 +0200
+@@ -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