This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix Ada bootstrap on Tru64 UNIX
Arnaud Charlet writes:
> Well, what is the encouraged interface to remove a var from the environment
> then?
I've found none.
> The alternate method in env.c has documented known drawbacks, so I think I'd
> rather add a #define _BSD for OSF rather than use the fallback.
Fine with me. This is the patch I'm currently testing. Ok if it passes?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Mon Jul 27 16:02:47 2009 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* env.c [__alpha__ && __osf__] (_BSD): Define.
Index: gcc/ada/env.c
===================================================================
--- gcc/ada/env.c (revision 150108)
+++ gcc/ada/env.c (working copy)
@@ -29,6 +29,11 @@
* *
****************************************************************************/
+/* Tru64 UNIX <stdlib.h> declares unsetenv() only iff _BSD. */
+#if defined (__alpha__) && defined (__osf__)
+#define _BSD
+#endif
+
#ifdef IN_RTS
#include "tconfig.h"
#include "tsystem.h"