From 590f011df1d5521a7eba435e2e6856767f036af3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Jul 2013 01:47:02 +0200 Subject: [PATCH] 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. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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