William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 1 | From 11e730694706fa354a0e43c588ef66677a777d9a Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 25 Feb 2019 15:27:54 +0800 |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 4 | Subject: [PATCH] missing_type.h: add __compar_d_fn_t definition |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | |
| 6 | Fix the following compile failure: |
| 7 | src/basic/util.h:71:18: error: unknown type name '__compar_d_fn_t'; did you mean '__compar_fn_t'? |
| 8 | |
| 9 | Upstream-Status: Inappropriate [musl specific] |
| 10 | |
| 11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 12 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | --- |
| 14 | src/basic/missing_type.h | 1 + |
| 15 | 1 file changed, 1 insertion(+) |
| 16 | |
| 17 | diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 18 | index 3df1084ef2..697aa7f58a 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | --- 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 |