From c7fc46aeb0ea9637deb242fbdba2e07cb63a44f6 Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Tue, 11 Sep 2018 22:43:54 -0500
Subject: stdlib: Add secure_getenv alias to __secure_getenv

Signed-off-by: Samuel Holland <samuel@sholland.org>
---
 CHANGELOG.rst       | 6 ++++++
 libgcompat/stdlib.c | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 96de004..f97724f 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -55,6 +55,12 @@ socket
 * Add __poll_chk
 
 
+stdlib
+------
+
+* Add secure_getenv alias to __secure_getenv.
+
+
 string
 ------
 
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.
-- 
cgit v1.2.3-70-g09d2