Kaydet (Commit) 1a901178 authored tarafından Andrew MacIntyre's avatar Andrew MacIntyre

fix the curses module build failure on FreeBSD, reported in SF #740234.

üst 7e902b27
......@@ -12,6 +12,21 @@
#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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment