From 7df91b01fc558a33941c5c5f31abbcdc53a729fb Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 14 Jul 2016 12:25:24 +1000 Subject: [PATCH] Check for VIS_ALL. If we don't have it, set BROKEN_STRNVIS to activate the compat replacement. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index f6c44b874..2439e3948 100644 --- a/configure.ac +++ b/configure.ac @@ -1405,6 +1405,9 @@ g.gl_statv = NULL; AC_CHECK_DECLS([GLOB_NOMATCH], , , [#include ]) +AC_CHECK_DECL([VIS_ALL], , + AC_DEFINE(BROKEN_STRNVIS, 1, [missing VIS_ALL]), [#include ]) + AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[