Check for VIS_ALL.

If we don't have it, set BROKEN_STRNVIS to activate the compat replacement.
This commit is contained in:
Darren Tucker 2016-07-14 12:25:24 +10:00
parent ee67716f61
commit 7df91b01fc
1 changed files with 3 additions and 0 deletions

View File

@ -1405,6 +1405,9 @@ g.gl_statv = NULL;
AC_CHECK_DECLS([GLOB_NOMATCH], , , [#include <glob.h>])
AC_CHECK_DECL([VIS_ALL], ,
AC_DEFINE(BROKEN_STRNVIS, 1, [missing VIS_ALL]), [#include <vis.h>])
AC_MSG_CHECKING([whether struct dirent allocates space for d_name])
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[