summaryrefslogtreecommitdiff
path: root/lang/python32/patches/patch-aa
blob: d3276fe0916ca8532f04ef8451966ba3729b2bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-aa,v 1.1.1.1 2012/05/06 13:12:12 obache Exp $

* On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
  against multiple definition of wchar_t and wint_t.

--- Include/py_curses.h.orig	2009-09-06 21:26:46.000000000 +0000
+++ Include/py_curses.h
@@ -44,6 +44,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