aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/kldxref/kldxref.c
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2024-01-02 19:06:51 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2024-01-02 19:06:51 +0000
commit30887c7d48ead8a9151627228244dd3ed95c4c6d (patch)
tree00951f5899aff92d0e8e7e1b356b52e32664555e /usr.sbin/kldxref/kldxref.c
parent2ee77056d2d4f9d43bd316ce6dc91bf5e4b0848b (diff)
Diffstat (limited to 'usr.sbin/kldxref/kldxref.c')
-rw-r--r--usr.sbin/kldxref/kldxref.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c
index 68f010a6db98..1694f069564b 100644
--- a/usr.sbin/kldxref/kldxref.c
+++ b/usr.sbin/kldxref/kldxref.c
@@ -748,7 +748,11 @@ usage(void)
}
static int
+#ifdef __GLIBC__
+compare(const FTSENT **a, const FTSENT **b)
+#else
compare(const FTSENT *const *a, const FTSENT *const *b)
+#endif
{
if ((*a)->fts_info == FTS_D && (*b)->fts_info != FTS_D)