summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-26 01:47:02 +0200
committerwm4 <wm4@nowhere>2013-07-26 01:47:02 +0200
commit590f011df1d5521a7eba435e2e6856767f036af3 (patch)
tree84c57ddc6c7b10bb42204e9a9cb3c39f5f6c5fa9
parentefd3361c818f69afc3401a8210675ee81f71a9cd (diff)
downloadmpv-590f011df1d5521a7eba435e2e6856767f036af3.tar.bz2
mpv-590f011df1d5521a7eba435e2e6856767f036af3.tar.xz
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.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 1426fd3cb0..c108064ee8 100755
--- a/configure
+++ b/configure
@@ -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