summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-09-11 22:43:54 -0500
committerSamuel Holland <samuel@sholland.org>2018-09-11 22:50:44 -0500
commitc7fc46aeb0ea9637deb242fbdba2e07cb63a44f6 (patch)
tree139122dc0825c279f26919fe7c865c17257892cf /libgcompat
parent5c4d07699c7c6f83d10657f03ae89dee6735226f (diff)
downloadgcompat-c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6.tar.gz
gcompat-c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6.tar.bz2
gcompat-c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6.tar.xz
gcompat-c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6.zip
stdlib: Add secure_getenv alias to __secure_getenv
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/stdlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgcompat/stdlib.c b/libgcompat/stdlib.c
index a08f914..82f7602 100644
--- a/libgcompat/stdlib.c
+++ b/libgcompat/stdlib.c
@@ -5,6 +5,8 @@
#include <stdlib.h> /* getenv, realpath, strto* */
#include <unistd.h> /* get*id */
+#include "alias.h"
+
/**
* Resolve a pathname, with buffer overflow checking.
*
@@ -30,6 +32,7 @@ char *__secure_getenv(const char *name)
return getenv(name);
}
+weak_alias(__secure_getenv, secure_getenv);
/**
* Underlying function for strtod.