aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/dbus/dbus-broker/0002-Use-getenv-instead-of-secure_getenv-on-musl.patch
blob: bebd2145f2f0a3418a62fec813cc7c955b02253a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 95a5541f8b75f7896ee6e5e71edd61838cab3c8b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 28 Jun 2018 07:16:34 -0700
Subject: [PATCH] Use getenv instead of secure_getenv on musl

musl doesnt implement secure version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 src/launch/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/launch/main.c b/src/launch/main.c
index 6475ae6..6468d84 100644
--- a/src/launch/main.c
+++ b/src/launch/main.c
@@ -30,6 +30,10 @@
 #include "util/log.h"
 #include "util/misc.h"
 
+#ifndef __GLIBC__
+#define secure_getenv getenv
+#endif
+
 typedef struct Manager Manager;
 typedef struct Service Service;