diff options
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r-- | gcc/ada/env.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c index d948697..c8b49eb 100644 --- a/gcc/ada/env.c +++ b/gcc/ada/env.c @@ -52,7 +52,8 @@ #include <stdlib.h> #endif -#if defined (__vxworks) && ! (defined (__RTP__) || defined (__COREOS__)) +#if defined (__vxworks) \ + && ! (defined (__RTP__) || defined (__COREOS__) || defined (__VXWORKSMILS__)) #include "envLib.h" extern char** ppGlobalEnviron; #endif @@ -198,7 +199,8 @@ __gnat_setenv (char *name, char *value) char ** __gnat_environ (void) { -#if defined (VMS) || defined (RTX) || defined (VTHREADS) +#if defined (VMS) || defined (RTX) \ + || (defined (VTHREADS) && ! defined (__VXWORKSMILS__)) /* Not implemented */ return NULL; #elif defined (__APPLE__) @@ -210,9 +212,11 @@ __gnat_environ (void) extern char **_environ; return _environ; #else -#if ! (defined (__vxworks) && ! (defined (__RTP__) || defined (__COREOS__))) +#if ! (defined (__vxworks) \ + && ! (defined (__RTP__) || defined (__COREOS__) \ + || defined (__VXWORKSMILS__))) /* in VxWorks kernel mode environ is macro and not a variable */ - /* same thing on 653 in the CoreOS */ + /* same thing on 653 in the CoreOS and for VxWorks MILS vThreads */ extern char **environ; #endif return environ; |