]> granicus.if.org Git - python/commitdiff
fix the curses module build failure on FreeBSD, reported in SF #740234.
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 11 Jun 2003 12:26:08 +0000 (12:26 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Wed, 11 Jun 2003 12:26:08 +0000 (12:26 +0000)
Include/py_curses.h

index 713a24fadc31f973e728afc6f7926e9b56981e77..3ecf48fcdff74e8b0a9484a4bdc9443114691f25 100644 (file)
 #endif
 #endif
 
+#ifdef __FreeBSD__
+/*
+** On FreeBSD, [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