blob: a027fad1d96a02670d867cfebcfea9d526d203f6 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From e06eec89a22719c38e257fe07afff18e359114cb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 22 Feb 2016 06:02:38 +0000
4Subject: [PATCH 2/2] check for uchar.h in configure
5
6Use ifdef to include uchar.h
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10Upstream-Status: Pending
11
12 configure.ac | 1 +
13 src/basic/missing.h | 2 ++
14 2 files changed, 3 insertions(+)
15
16diff --git a/configure.ac b/configure.ac
17index ecc3e6b..62f934e 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -297,6 +297,7 @@ AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
21
22 # ------------------------------------------------------------------------------
23
24+AC_CHECK_HEADERS([uchar.h], [], [])
25 AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
26 AC_CHECK_HEADERS([linux/btrfs.h], [], [])
27 AC_CHECK_HEADERS([linux/memfd.h], [], [])
28diff --git a/src/basic/missing.h b/src/basic/missing.h
29index f704422..a1baa95 100644
30--- a/src/basic/missing.h
31+++ b/src/basic/missing.h
32@@ -34,7 +34,9 @@
33 #include <stdlib.h>
34 #include <sys/resource.h>
35 #include <sys/syscall.h>
36+#ifdef HAVE_UCHAR_H
37 #include <uchar.h>
38+#endif
39 #include <unistd.h>
40
41 #ifdef HAVE_AUDIT
42--
431.8.3.1
44