Without the macro SET_NEED_WCHAR_H defined, the ncurses header will not
include wchar.h which is where the wint_t type is defined. This breaks
any program loading ncurses.h without defining this macro because several
functions use the wint_t type.
Define wint_t as int if wchar.h isn't included. This fixes the ncurses
check on several pkgsrc configuration checks and allows the package to
build with the system ncurses.
#if SET_NEED_WCHAR_H
#include <wchar.h> /* ...to get mbstate_t, etc. */
#if SET_NEED_WCHAR_H
#include <wchar.h> /* ...to get mbstate_t, etc. */
+#else
+typedef int wint_t;