diff options
Diffstat (limited to 'meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch')
| -rw-r--r-- | meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch b/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch new file mode 100644 index 0000000000..5827eb4d18 --- /dev/null +++ b/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 23f827ea94284656972652f61f2c6aad96092cc8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Thu, 20 Jul 2017 23:00:29 -0400 | ||
| 4 | Subject: [PATCH] fix compile failure against musl C library | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 9 | --- | ||
| 10 | lib/rpm.c | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/lib/rpm.c b/lib/rpm.c | ||
| 14 | index 920e145..58140bf 100644 | ||
| 15 | --- a/lib/rpm.c | ||
| 16 | +++ b/lib/rpm.c | ||
| 17 | @@ -188,7 +188,7 @@ sr_rpm_package_sort(struct sr_rpm_package *packages) | ||
| 18 | } | ||
| 19 | |||
| 20 | /* Sort the array. */ | ||
| 21 | - qsort(array, count, sizeof(struct sr_rpm_package*), (comparison_fn_t)cmp_nevra_qsort_wrapper); | ||
| 22 | + qsort(array, count, sizeof(struct sr_rpm_package*), cmp_nevra_qsort_wrapper); | ||
| 23 | |||
| 24 | /* Create a linked list from the sorted array. */ | ||
| 25 | for (size_t loop = 0; loop < count; ++loop) | ||
| 26 | -- | ||
| 27 | 2.8.1 | ||
| 28 | |||
