summaryrefslogtreecommitdiff
path: root/gcc/ada/env.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-21 18:58:29 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-21 18:58:29 +0000
commit1907f70c065696a117a6909d7d24ecb04754d1fb (patch)
treedab87c3e3180a14c6a6dd3076b029a29b65dfe07 /gcc/ada/env.c
parent4e32b1c1e8b968955e9c1e4011060cb6b97b4f01 (diff)
downloadgcc-1907f70c065696a117a6909d7d24ecb04754d1fb.tar.gz
* env.c [__alpha__ && __osf__] (_BSD): Define.
* init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg to const char *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r--gcc/ada/env.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c
index bcb8bdb9a80..ac6e835df9f 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"