blob: db4041bbb1bbf1e3ea20a0bb6677c9b6d79b6cc2 [file] [log] [blame]
Andrew Geissler706d5aa2021-02-12 15:55:30 -06001From 8303d49cabaf3ab8890ba1d266972c721dfe6ee8 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 15:27:54 +0800
Andrew Geissler706d5aa2021-02-12 15:55:30 -06004Subject: [PATCH] missing_type.h: add __compar_d_fn_t definition
Brad Bishop19323692019-04-05 15:28:33 -04005
6Fix the following compile failure:
7src/basic/util.h:71:18: error: unknown type name '__compar_d_fn_t'; did you mean '__compar_fn_t'?
8
9Upstream-Status: Inappropriate [musl specific]
10
11Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Andrew Geissler706d5aa2021-02-12 15:55:30 -060012
Brad Bishop19323692019-04-05 15:28:33 -040013---
14 src/basic/missing_type.h | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h
Andrew Geissler706d5aa2021-02-12 15:55:30 -060018index 23602ebbd533..917d314a81bf 100644
Brad Bishop19323692019-04-05 15:28:33 -040019--- a/src/basic/missing_type.h
20+++ b/src/basic/missing_type.h
21@@ -13,6 +13,7 @@
22
23 #ifndef __GLIBC__
24 typedef int (*comparison_fn_t)(const void *, const void *);
25+typedef int (*__compar_d_fn_t) (const void *, const void *, void *);
26 #endif
27
28 #ifndef __COMPAR_FN_T