Mercurial > vanilla
comparison crypto/libressl/patch-musl.patch @ 645:af3c84369341
crypto/libressl: fix build
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 27 Jul 2019 08:58:45 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
644:4ab57189a2b5 | 645:af3c84369341 |
---|---|
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 1/4] 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 diff --git a/crypto/compat/getprogname_linux.c b/crypto/compat/getprogname_linux.c | |
12 index 2c89743..4e7e31f 100644 | |
13 --- crypto/compat/getprogname_linux.c | |
14 +++ crypto/compat/getprogname_linux.c | |
15 @@ -26,9 +26,7 @@ getprogname(void) | |
16 #if defined(__ANDROID_API__) && __ANDROID_API__ < 21 | |
17 extern const char *__progname; | |
18 return __progname; | |
19 -#elif defined(__GLIBC__) | |
20 - return program_invocation_short_name; | |
21 #else | |
22 -#error "Cannot emulate getprogname" | |
23 + return program_invocation_short_name; | |
24 #endif | |
25 } | |
26 -- | |
27 2.21.0 | |
28 |