ncurses: Fix pkgsrc check and use of ncurses
authorJohn Marino <draco@marino.st>
Tue, 7 Aug 2012 11:35:26 +0000 (13:35 +0200)
committerJohn Marino <draco@marino.st>
Tue, 7 Aug 2012 13:12:31 +0000 (15:12 +0200)
commite27e6728f653b70f5d41b5a3c332e9be4b3c434c
tree87d123d3bd923590ae9566a609c1e7a29cb2c098
parent21a3f12ea186e7c9d8956e350ef76cb3fb412958
ncurses: Fix pkgsrc check and use of ncurses

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.
lib/libncurses/include/curses.head