Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From b8055a61b5df6b43b8d3117936587b874b0a339b Mon Sep 17 00:00:00 2001 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 3 | Date: Mon, 25 Feb 2019 11:01:18 +0800 |
| 4 | Subject: [PATCH 01/24] Use getenv when secure versions are not available |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 5 | |
| 6 | musl doesnt implement secure version, so we default |
| 7 | to it if configure does not detect a secure implementation |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | |
| 11 | Upstream-Status: Denied |
| 12 | |
| 13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 14 | --- |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 15 | src/basic/missing_stdlib.h | 2 +- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 18 | diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h |
| 19 | index 188a8d4..c0ffe86 100644 |
| 20 | --- a/src/basic/missing_stdlib.h |
| 21 | +++ b/src/basic/missing_stdlib.h |
| 22 | @@ -8,6 +8,6 @@ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 23 | # if HAVE___SECURE_GETENV |
| 24 | # define secure_getenv __secure_getenv |
| 25 | # else |
| 26 | -# error "neither secure_getenv nor __secure_getenv are available" |
| 27 | +# define secure_getenv getenv |
| 28 | # endif |
| 29 | #endif |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 30 | -- |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 31 | 2.7.4 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | |