summaryrefslogtreecommitdiff
path: root/libgcompat/stdlib.c
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-09-21 21:30:18 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-09-21 21:30:18 +0000
commite7fd895295db6291319af09ffaa3b6d93180788c (patch)
tree6ad80501db199c916e8fc2ed5648bf694a257675 /libgcompat/stdlib.c
parent938c8095e7456fbcdf4ce261bdb6dfa3a8e41b80 (diff)
parent9bc7c737b311fcbba71af11884b7f9111dba57ba (diff)
downloadgcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.gz
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.bz2
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.xz
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.zip
Merge branch 'patch-3' into 'master'
Add some more functions (notably __cxa_thread_atexit_impl and realpath) and run clang-format See merge request !3
Diffstat (limited to 'libgcompat/stdlib.c')
-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.