]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Check for VIS_ALL.
authorDarren Tucker <dtucker@zip.com.au>
Thu, 14 Jul 2016 02:25:24 +0000 (12:25 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Thu, 14 Jul 2016 02:26:54 +0000 (12:26 +1000)
If we don't have it, set BROKEN_STRNVIS to activate the compat replacement.

configure.ac

index f6c44b87473776b01711708772eb867906299003..2439e3948837f91a9aafeb8c111ec08c764ae874 100644 (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([[