1From 417abd56fd7bf45cd4948414050615cb1ad59134 Mon Sep 17 00:00:00 2001
2From: NIIBE Yutaka <gniibe@fsij.org>
3Date: Fri, 1 Mar 2024 13:53:52 +0900
4Subject: [PATCH] Fix INSERT_EXPOSE_RWLOCK_API for musl C library.
5
6* configure.ac: Add a case for musl system.
7
8--
9
10GnuPG-bug-id: 5664
11Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
12
13Upstream: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=commit;h=417abd56fd7bf45cd4948414050615cb1ad59134
14Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
15---
16 configure.ac | 5 ++++-
17 1 file changed, 4 insertions(+), 1 deletion(-)
18
19diff --git a/configure.ac b/configure.ac
20index c1091b1..576a26e 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -381,7 +381,10 @@ fi
24 AC_SUBST(INSERT_NO_RWLOCK)
25
26 case "${host}" in
27-    *-*-linux*|*-*-gnu*)
28+    *-*-linux-musl*)
29+        INSERT_EXPOSE_RWLOCK_API="1"
30+        ;;
31+    *-*-linux-gnu*|*-*-gnu*)
32         INSERT_EXPOSE_RWLOCK_API="defined(__USE_UNIX98) || defined(__USE_XOPEN2K)"
33         ;;
34     *)
35--
362.30.2
37
38