Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From e06eec89a22719c38e257fe07afff18e359114cb Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 22 Feb 2016 06:02:38 +0000 |
| 4 | Subject: [PATCH 2/2] check for uchar.h in configure |
| 5 | |
| 6 | Use ifdef to include uchar.h |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | configure.ac | 1 + |
| 13 | src/basic/missing.h | 2 ++ |
| 14 | 2 files changed, 3 insertions(+) |
| 15 | |
| 16 | diff --git a/configure.ac b/configure.ac |
| 17 | index 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], [], []) |
| 28 | diff --git a/src/basic/missing.h b/src/basic/missing.h |
| 29 | index 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 | -- |
| 43 | 1.8.3.1 |
| 44 | |