Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 33affa9ee97691efb73f439fcdba4adb8625a26a Mon Sep 17 00:00:00 2001 |
| 2 | From: Alistair Francis <alistair.francis@wdc.com> |
| 3 | Date: Mon, 10 Sep 2018 12:59:48 -0700 |
| 4 | Subject: [PATCH] os_posix: Manually implement secure_getenv() if required |
| 5 | |
| 6 | Manually implement the secure_getenv() if we need to, this is required |
| 7 | if using musl. |
| 8 | |
| 9 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
| 10 | Upstream-Status: Pending |
| 11 | --- |
| 12 | src/common/os_posix.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/src/common/os_posix.c b/src/common/os_posix.c |
| 16 | index 2d70a0a29..fb09b6ce0 100644 |
| 17 | --- a/src/common/os_posix.c |
| 18 | +++ b/src/common/os_posix.c |
| 19 | @@ -261,7 +261,7 @@ os_setenv(const char *name, const char *value, int overwrite) |
| 20 | /* |
| 21 | * secure_getenv -- provide GNU secure_getenv for FreeBSD |
| 22 | */ |
| 23 | -#ifdef __FreeBSD__ |
| 24 | +#if defined(__FreeBSD__) || !HAVE___SECURE_GETENV |
| 25 | static char * |
| 26 | secure_getenv(const char *name) |
| 27 | { |
| 28 | -- |
| 29 | 2.17.1 |
| 30 | |