diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch b/meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch new file mode 100644 index 0000000000..5824033b40 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0018-check-for-uchar.h-in-configure.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 7cc0b19d244023c7b3e557765b03b7971e047f29 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 18/19] 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 | configure.ac | 1 + | ||
11 | src/basic/missing.h | 2 ++ | ||
12 | 2 files changed, 3 insertions(+) | ||
13 | |||
14 | diff --git a/configure.ac b/configure.ac | ||
15 | index b12e320..4e6dfdf 100644 | ||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -298,6 +298,7 @@ AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) | ||
19 | |||
20 | # ------------------------------------------------------------------------------ | ||
21 | |||
22 | +AC_CHECK_HEADERS([uchar.h], [], []) | ||
23 | AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])]) | ||
24 | AC_CHECK_HEADERS([linux/btrfs.h], [], []) | ||
25 | AC_CHECK_HEADERS([linux/memfd.h], [], []) | ||
26 | diff --git a/src/basic/missing.h b/src/basic/missing.h | ||
27 | index 4936873..ce79404 100644 | ||
28 | --- a/src/basic/missing.h | ||
29 | +++ b/src/basic/missing.h | ||
30 | @@ -35,7 +35,9 @@ | ||
31 | #include <stdlib.h> | ||
32 | #include <sys/resource.h> | ||
33 | #include <sys/syscall.h> | ||
34 | +#ifdef HAVE_UCHAR_H | ||
35 | #include <uchar.h> | ||
36 | +#endif | ||
37 | #include <unistd.h> | ||
38 | |||
39 | #ifdef HAVE_AUDIT | ||
40 | -- | ||
41 | 2.10.2 | ||
42 | |||