Files
pkgsrc-ng/lang/python27/patches/patch-aa
2013-09-26 17:14:40 +02:00

27 lines
526 B
Plaintext

$NetBSD: patch-aa,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $
--- Include/py_curses.h.orig 2010-03-25 00:54:54.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