summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-07-11 17:23:38 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-07-11 17:26:49 +1000
commitf3f2cc8386868f51440c45210098f65f9787449a (patch)
tree48958a7bae719e91fa1a0bafaaaf0475e9ed322f /utf8.c
parentb9c50614eba9d90939b2b119b6e1b7e03b462278 (diff)
downloadopenssh-git-f3f2cc8386868f51440c45210098f65f9787449a.tar.gz
Check for wchar.h and langinfo.h
Wrap includes in the appropriate #ifdefs.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 6445b376..f563d373 100644
--- a/utf8.c
+++ b/utf8.c
@@ -23,7 +23,9 @@
#include "includes.h"
#include <sys/types.h>
-#include <langinfo.h>
+#ifdef HAVE_LANGINFO_H
+# include <langinfo.h>
+#endif
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
@@ -32,7 +34,9 @@
#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
# include <vis.h>
#endif
-#include <wchar.h>
+#ifdef HAVE_WCHAR_H
+# include <wchar.h>
+#endif
#include "utf8.h"