diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0020-check-for-uchar.h-in-configure.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0020-check-for-uchar.h-in-configure.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0020-check-for-uchar.h-in-configure.patch b/meta/recipes-core/systemd/systemd/0020-check-for-uchar.h-in-configure.patch new file mode 100644 index 0000000000..a027fad1d9 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0020-check-for-uchar.h-in-configure.patch | |||
@@ -0,0 +1,44 @@ | |||
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 | |||