summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2013-01-28 18:49:01 +0200
committerPanu Matilainen <pmatilai@redhat.com>2013-01-29 08:15:03 +0200
commitfd5e1c5e1919bb741bdede0e6e24ebc0e87f8297 (patch)
treef77c91406b2664af5ec536d3843b22b105a2b28c /system.h
parent4c41373547becfd03beba8c449dee7d7d2e67870 (diff)
downloadrpm-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/system.h b/system.h
index 6f0b76b67..f3b1bab32 100644
--- a/system.h
+++ b/system.h
@@ -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