0001-Fix-INSERT_EXPOSE_RWLOCK_API-for-musl-C-library.patch 1005 B

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