blob: 24efc135609049aa6daefae8953e682532c9d665 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 23f827ea94284656972652f61f2c6aad96092cc8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 20 Jul 2017 23:00:29 -0400
4Subject: [PATCH] fix compile failure against musl C library
5
6Upstream-Status: Pending
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 lib/rpm.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013--- a/lib/rpm.c
14+++ b/lib/rpm.c
Andrew Geisslerc5535c92023-01-27 16:10:19 -060015@@ -34,6 +34,11 @@
16 #include <assert.h>
17 #include <string.h>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018
Andrew Geisslerc5535c92023-01-27 16:10:19 -060019+#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 {