diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2022-09-10 08:54:37 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2022-09-10 14:14:10 +0100 |
commit | 7d37c7f67c1bb75f85ad0c07bfff51ca579e1476 (patch) | |
tree | dd113c37bedf544b8e2b928104e5beb6cf0cad4a /libgomp/env.c | |
parent | 7c4c65d11469d29403d5a88316445ec95cd3c3f8 (diff) | |
download | gcc-7d37c7f67c1bb75f85ad0c07bfff51ca579e1476.zip gcc-7d37c7f67c1bb75f85ad0c07bfff51ca579e1476.tar.gz gcc-7d37c7f67c1bb75f85ad0c07bfff51ca579e1476.tar.bz2 |
libgomp: Use libiberty environ.h to declare the environment pointer.
This allows for target-specific mechanisms for finding the pointer.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgomp/ChangeLog:
* env.c (initialize_env): Include libiberty environ.h.
Diffstat (limited to 'libgomp/env.c')
-rw-r--r-- | libgomp/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c index 92f32f7..ac8c764 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -60,6 +60,7 @@ #endif /* LIBGOMP_OFFLOADED_ONLY */ #include "secure_getenv.h" +#include "environ.h" /* Default values of ICVs according to the OpenMP standard. */ const struct gomp_default_icv gomp_default_icv_values = { @@ -2033,7 +2034,6 @@ startswith (const char *str, const char *prefix) static void __attribute__((constructor)) initialize_env (void) { - extern char **environ; char **env; int omp_var, dev_num = 0, dev_num_len = 0, i; bool ignore = false; |