diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-06 20:56:05 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-06 20:56:05 +0000 |
commit | 5935a97b62fee05912a33af3a3e56da2575b4a78 (patch) | |
tree | 245c19b2621f21e1a618a087f712385c5a897ff1 /libgfortran/libgfortran.h | |
parent | 333f79f1f8fa582a81355aad7ab0bcd3534ae35e (diff) | |
download | gcc-5935a97b62fee05912a33af3a3e56da2575b4a78.tar.gz |
Fix usage of secure_getenv with glibc 2.17.
See http://sourceware.org/glibc/wiki/Tips_and_Tricks/secure_getenv
2012-10-06 Janne Blomqvist <jb@gcc.gnu.org>
* configure.ac: Check for presence of secure_getenv.
* libgfortran.h: Use HAVE_SECURE_GETENV.
* Makefile.in: Regenerated.
* aclocal.m4: Regenerated.
* config.h.in: Regenerated.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/libgfortran.h')
-rw-r--r-- | libgfortran/libgfortran.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index 7dafd940e62..a8c33636171 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -772,6 +772,7 @@ unit_convert get_unformatted_convert (int); internal_proto(get_unformatted_convert); /* Secure getenv() which returns NULL if running as SUID/SGID. */ +#ifndef HAVE_SECURE_GETENV #ifdef HAVE___SECURE_GETENV #define secure_getenv __secure_getenv #elif defined(HAVE_GETUID) && defined(HAVE_GETEUID) \ @@ -782,6 +783,7 @@ internal_proto(secure_getenv); #else #define secure_getenv getenv #endif +#endif /* string.c */ |