diff options
Diffstat (limited to 'common/compat.c')
-rw-r--r-- | common/compat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/compat.c b/common/compat.c index ce0ccab..768bb7d 100644 --- a/common/compat.c +++ b/common/compat.c @@ -845,6 +845,14 @@ getauxval (unsigned long type) #endif /* HAVE_GETAUXVAL */ +char * +secure_getenv (const char *name) +{ + if (getauxval (AT_SECURE)) + return NULL; + return getenv (name); +} + #ifndef HAVE_STRERROR_R int |