diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2009-09-21 18:58:29 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2009-09-21 18:58:29 +0000 |
commit | 576891f9a620136a95f1e5d59b127353ffb454e0 (patch) | |
tree | dab87c3e3180a14c6a6dd3076b029a29b65dfe07 /gcc/ada/env.c | |
parent | d9334061eab3d7bab9f85f2b051dd714d62630c9 (diff) | |
download | gcc-576891f9a620136a95f1e5d59b127353ffb454e0.zip gcc-576891f9a620136a95f1e5d59b127353ffb454e0.tar.gz gcc-576891f9a620136a95f1e5d59b127353ffb454e0.tar.bz2 |
ada: init.c (__gnat_error_handler): Cast msg to const char *.
* env.c [__alpha__ && __osf__] (_BSD): Define.
* init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
to const char *.
From-SVN: r151938
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r-- | gcc/ada/env.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c index bcb8bdb..ac6e835 100644 --- a/gcc/ada/env.c +++ b/gcc/ada/env.c @@ -29,6 +29,11 @@ * * ****************************************************************************/ +/* Tru64 UNIX <stdlib.h> declares unsetenv() only if _BSD. */ +#if defined (__alpha__) && defined (__osf__) +#define _BSD +#endif + #ifdef IN_RTS #include "tconfig.h" #include "tsystem.h" |