diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-26 22:10:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 22:24:04 +0000 |
commit | af34166d38382382df5b6400fa30ac80b209a866 (patch) | |
tree | bb3dd21351f68558c5364c1a37f8556e53785e1f /meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch | |
parent | 997764c34a2232f45f0db52346ea7dc710b8d045 (diff) | |
download | poky-af34166d38382382df5b6400fa30ac80b209a866.tar.gz |
systemd: Fix build on musl
Add needed patches for portability across glibc/musl
enable systemd on musl too
Disable utmp,ldconfig,nss,resolved,localed for musl
which is not supported on musl
(From OE-Core rev: acdee728f0f6358dda709304ec307d737124aee6)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch b/meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch new file mode 100644 index 0000000000..e219981ab0 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0013-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 4b6733544beb662a0f77310302fae1fb7b76d167 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Sep 2015 18:53:31 +0000 | ||
4 | Subject: [PATCH 13/13] comparison_fn_t is glibc specific, use raw signature in | ||
5 | function pointer | ||
6 | |||
7 | make it work with musl where comparison_fn_t is not provided | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | src/basic/util.h | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/basic/util.h b/src/basic/util.h | ||
17 | index c7da6c39b..87f62b891 100644 | ||
18 | --- a/src/basic/util.h | ||
19 | +++ b/src/basic/util.h | ||
20 | @@ -98,7 +98,7 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, | ||
21 | * Normal qsort requires base to be nonnull. Here were require | ||
22 | * that only if nmemb > 0. | ||
23 | */ | ||
24 | -static inline void qsort_safe(void *base, size_t nmemb, size_t size, comparison_fn_t compar) { | ||
25 | +static inline void qsort_safe(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) { | ||
26 | if (nmemb <= 1) | ||
27 | return; | ||
28 | |||
29 | -- | ||
30 | 2.14.2 | ||
31 | |||