mirror of https://github.com/mpv-player/mpv
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:
parent
efd3361c81
commit
590f011df1
|
@ -1417,7 +1417,7 @@ echocheck "terminfo"
|
||||||
if test "$_terminfo" = auto ; then
|
if test "$_terminfo" = auto ; then
|
||||||
_terminfo=no
|
_terminfo=no
|
||||||
for _ld_tmp in "-lncurses" "-lncursesw"; do
|
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
|
libs_mplayer="$libs_mplayer $_ld_tmp" && _terminfo=yes && break
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue