aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libressl/patches/010-avoid-glibc.patch
blob: e91899c7d7adf6b8e4f9dad5c8df1ceb89161090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From a747aacc23607c993cc481378782b2c7dd5bc53b Mon Sep 17 00:00:00 2001
From: Ishimoto Shinobu <47295761+protonesso@users.noreply.github.com>
Date: Tue, 21 May 2019 22:41:05 +0900
Subject: [PATCH] avoid glibc

cause problems on musl systems
---
 crypto/compat/getprogname_linux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/crypto/compat/getprogname_linux.c
+++ b/crypto/compat/getprogname_linux.c
@@ -26,9 +26,7 @@ getprogname(void)
 #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
 	extern const char *__progname;
 	return __progname;
-#elif defined(__GLIBC__)
-	return program_invocation_short_name;
 #else
-#error "Cannot emulate getprogname"
+	return program_invocation_short_name;
 #endif
 }