010-avoid-glibc.patch 722 B

1234567891011121314151617181920212223
  1. From a747aacc23607c993cc481378782b2c7dd5bc53b Mon Sep 17 00:00:00 2001
  2. From: Ishimoto Shinobu <47295761+protonesso@users.noreply.github.com>
  3. Date: Tue, 21 May 2019 22:41:05 +0900
  4. Subject: [PATCH] avoid glibc
  5. cause problems on musl systems
  6. ---
  7. crypto/compat/getprogname_linux.c | 4 +---
  8. 1 file changed, 1 insertion(+), 3 deletions(-)
  9. --- a/crypto/compat/getprogname_linux.c
  10. +++ b/crypto/compat/getprogname_linux.c
  11. @@ -26,9 +26,7 @@ getprogname(void)
  12. #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
  13. extern const char *__progname;
  14. return __progname;
  15. -#elif defined(__GLIBC__)
  16. - return program_invocation_short_name;
  17. #else
  18. -#error "Cannot emulate getprogname"
  19. + return program_invocation_short_name;
  20. #endif
  21. }