openbsd-ports/lang/gcc/4.2/patches/patch-gcc_ada_env_c
2006-07-31 09:50:53 +00:00

14 lines
662 B
Plaintext

$OpenBSD: patch-gcc_ada_env_c,v 1.1.1.1 2006/07/31 09:50:53 espie Exp $
--- gcc/ada/env.c.orig Sun Jul 23 19:38:16 2006
+++ gcc/ada/env.c Sun Jul 23 19:38:44 2006
@@ -287,7 +287,8 @@ void __gnat_clearenv (void) {
env[index]=NULL;
index++;
}
-#elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \
+#elif defined (__MINGW32__) || defined (__FreeBSD__) \
+ || defined(__OpenBSD__) || defined (__APPLE__) \
|| (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__)
/* On Windows, FreeBSD and MacOS there is no function to clean all the
environment but there is a "clean" way to unset a variable. So go