diff options
Diffstat (limited to 'meta-oe/recipes-extended/pmdk/files/0004-os_posix-Manually-implement-secure_getenv-if-require.patch')
-rw-r--r-- | meta-oe/recipes-extended/pmdk/files/0004-os_posix-Manually-implement-secure_getenv-if-require.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/pmdk/files/0004-os_posix-Manually-implement-secure_getenv-if-require.patch b/meta-oe/recipes-extended/pmdk/files/0004-os_posix-Manually-implement-secure_getenv-if-require.patch new file mode 100644 index 000000000..624f17bd4 --- /dev/null +++ b/meta-oe/recipes-extended/pmdk/files/0004-os_posix-Manually-implement-secure_getenv-if-require.patch | |||
@@ -0,0 +1,30 @@ | |||
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 | |||