e91899c7d7adf6b8e4f9dad5c8df1ceb89161090
[openwrt/openwrt.git] / tools / libressl / patches / 010-avoid-glibc.patch
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
6 cause problems on musl systems
7 ---
8 crypto/compat/getprogname_linux.c | 4 +---
9 1 file changed, 1 insertion(+), 3 deletions(-)
10
11 --- a/crypto/compat/getprogname_linux.c
12 +++ b/crypto/compat/getprogname_linux.c
13 @@ -26,9 +26,7 @@ getprogname(void)
14 #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
15 extern const char *__progname;
16 return __progname;
17 -#elif defined(__GLIBC__)
18 - return program_invocation_short_name;
19 #else
20 -#error "Cannot emulate getprogname"
21 + return program_invocation_short_name;
22 #endif
23 }