0003-enable-internal-getproto-functions-for-musl.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From c950bcf9cc7bdc68ed9751a1b7d04f4b4c2a9fb0 Mon Sep 17 00:00:00 2001
  2. From: Sergio Prado <sergio.prado@e-labworks.com>
  3. Date: Tue, 5 Jan 2016 21:15:34 -0200
  4. Subject: [PATCH] enable internal getproto functions for musl
  5. Musl toolchains does not have getprotobyname_r and getprotobynumber_r
  6. functions and need its internal implementation.
  7. Patch backported from Alpine Linux commit
  8. a162da839db0d3f8be94a5c1ad2e2e54e691c38a.
  9. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
  10. ---
  11. nspr/pr/src/misc/prnetdb.c | 5 +----
  12. 1 file changed, 1 insertion(+), 4 deletions(-)
  13. diff --git a/nspr/pr/src/misc/prnetdb.c b/nspr/pr/src/misc/prnetdb.c
  14. index b86248f863f0..dc83a5615f45 100644
  15. --- a/nspr/pr/src/misc/prnetdb.c
  16. +++ b/nspr/pr/src/misc/prnetdb.c
  17. @@ -61,10 +61,7 @@ PRLock *_pr_dnsLock = NULL;
  18. #define _PR_HAVE_GETPROTO_R_POINTER
  19. #endif
  20. -#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \
  21. - || (defined(LINUX) && defined(_REENTRANT) \
  22. - && !(defined(__GLIBC__) && __GLIBC__ >= 2) \
  23. - && !defined(ANDROID))
  24. +#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT))
  25. #define _PR_HAVE_GETPROTO_R
  26. #define _PR_HAVE_GETPROTO_R_POINTER
  27. #endif
  28. --
  29. 1.9.1