Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | --- a/lib/rpm.c |
| 14 | +++ b/lib/rpm.c |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 15 | @@ -34,6 +34,11 @@ |
| 16 | #include <assert.h> |
| 17 | #include <string.h> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 19 | +#if !defined(__GLIBC__) |
| 20 | +typedef int (*__compar_fn_t) (const void*, const void*); |
| 21 | +typedef __compar_fn_t comparison_fn_t; |
| 22 | +#endif |
| 23 | + |
| 24 | struct sr_rpm_package * |
| 25 | sr_rpm_package_new() |
| 26 | { |