diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2013-01-28 18:49:01 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2013-01-29 08:15:03 +0200 |
commit | fd5e1c5e1919bb741bdede0e6e24ebc0e87f8297 (patch) | |
tree | f77c91406b2664af5ec536d3843b22b105a2b28c /system.h | |
parent | 4c41373547becfd03beba8c449dee7d7d2e67870 (diff) | |
download | rpm-fd5e1c5e1919bb741bdede0e6e24ebc0e87f8297.tar.gz rpm-fd5e1c5e1919bb741bdede0e6e24ebc0e87f8297.tar.bz2 rpm-fd5e1c5e1919bb741bdede0e6e24ebc0e87f8297.zip |
Acommodate to glibc 2.17 __secure_getenv() renaming
- glibc 2.17 renames __secure_getenv() to secure_getenv() so now we
need to test for both. Meh.
(cherry picked from commit 49519f2564777fdcfb801088fb3025b3d6f5783a)
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,7 +35,9 @@ char * stpcpy(char * dest, const char * src); char * stpncpy(char * dest, const char * src, size_t n); #endif -#if HAVE___SECURE_GETENV +#if HAVE_SECURE_GETENV +#define getenv(_s) secure_getenv(_s) +#elif HAVE___SECURE_GETENV #define getenv(_s) __secure_getenv(_s) #endif |