summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_spawn_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-17 18:58:57 +0000
committermidipix <writeonce@midipix.org>2021-04-17 18:58:57 +0000
commite8bfe52070bfaa7934a02b78312b1689ac7b3805 (patch)
tree2ea29aa3210ce61e10bc55285d35124cb577fd42 /src/internal/slibtool_spawn_impl.h
parentb0cc9e73cc56d6cacac4b9b709b8c508b798dc01 (diff)
downloadslibtool-e8bfe52070bfaa7934a02b78312b1689ac7b3805.tar.bz2
slibtool-e8bfe52070bfaa7934a02b78312b1689ac7b3805.tar.xz
library: eliminate use of the external environ variable.
Diffstat (limited to 'src/internal/slibtool_spawn_impl.h')
-rw-r--r--src/internal/slibtool_spawn_impl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/internal/slibtool_spawn_impl.h b/src/internal/slibtool_spawn_impl.h
index da2e762..cfdd779 100644
--- a/src/internal/slibtool_spawn_impl.h
+++ b/src/internal/slibtool_spawn_impl.h
@@ -30,8 +30,6 @@
#include <spawn.h>
#endif
-extern char ** environ;
-
static inline int slbt_spawn(
struct slbt_exec_ctx * ectx,
bool fwait)
@@ -45,7 +43,7 @@ static inline int slbt_spawn(
ectx->program,
0,0,
ectx->argv,
- ectx->envp ? ectx->envp : environ))
+ ectx->envp))
pid = -1;
#else