summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/optional_secure_getenv.patch
blob: 2063268246b481b7e3d1b1347e1f55de673c2476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on uclibc secure_getenv is not available
therefore default to using getenv instead

Upstream-Status: Denied [no desire for uclibc support]
Signed-off-by: Khem Raj <raj.khem@gmail.com>

Index: git/src/shared/missing.h
===================================================================
--- git.orig/src/shared/missing.h	2012-09-22 18:46:44.141282145 -0700
+++ git/src/shared/missing.h	2012-09-22 18:48:44.081276570 -0700
@@ -233,6 +233,8 @@
 #ifndef HAVE_SECURE_GETENV
 #  ifdef HAVE___SECURE_GETENV
 #    define secure_getenv __secure_getenv
+#  elif defined __UCLIBC__
+#    define secure_getenv getenv
 #  else
 #    error neither secure_getenv nor __secure_getenv are available
 #  endif