From d5dff016a76259ebe40f3739f98d9c2eb47b5172 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Sun, 18 Aug 2024 02:49:49 -0500
Subject: [PATCH 14/34] basic: Define comparison_fn_t in sort-util.h
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

glibc may define a public comparison_fn_t type, but musl libc doesn't.

This cannot be upstreamed.  Really, we should consider adding it to our
musl patchset.

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
---
 src/basic/sort-util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/basic/sort-util.h b/src/basic/sort-util.h
index 9c818bd74706..94069443cf09 100644
--- a/src/basic/sort-util.h
+++ b/src/basic/sort-util.h
@@ -5,6 +5,8 @@
 
 #include "macro.h"
 
+typedef int (*comparison_fn_t)(const void *, const void *);
+
 /* This is the same as glibc's internal __compar_d_fn_t type. glibc exports a public comparison_fn_t, for the
  * external type __compar_fn_t, but doesn't do anything similar for __compar_d_fn_t. Let's hence do that
  * ourselves, picking a name that is obvious, but likely enough to not clash with glibc's choice of naming if
-- 
2.41.0

