configure: fix terminfo check

On Linux, the check fails because NULL is not defined. Fix by using 0
instead, which is a perfectly valid null pointer constant, but doesn't
require stddef.h.
This commit is contained in:
wm4 2013-07-26 01:47:02 +02:00
parent efd3361c81
commit 590f011df1
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -1417,7 +1417,7 @@ echocheck "terminfo"
if test "$_terminfo" = auto ; then
_terminfo=no
for _ld_tmp in "-lncurses" "-lncursesw"; do
statement_check term.h 'setupterm(NULL, 1, NULL)' $_ld_tmp &&
statement_check term.h 'setupterm(0, 1, 0)' $_ld_tmp &&
libs_mplayer="$libs_mplayer $_ld_tmp" && _terminfo=yes && break
done
fi