]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add compat bits to utf8.c.
authorDarren Tucker <dtucker@zip.com.au>
Mon, 6 Jun 2016 01:36:13 +0000 (11:36 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 6 Jun 2016 01:36:13 +0000 (11:36 +1000)
utf8.c

diff --git a/utf8.c b/utf8.c
index 18ee538583fb71f2d54cdf7e9074c745734c2ad1..6445b3766b615a24bbf721857cbd268ebe7c0050 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -20,6 +20,8 @@
  * in particular to sanitize untrusted strings for terminal output.
  */
 
+#include "includes.h"
+
 #include <sys/types.h>
 #include <langinfo.h>
 #include <limits.h>
@@ -27,7 +29,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <vis.h>
+#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
+# include <vis.h>
+#endif
 #include <wchar.h>
 
 #include "utf8.h"