aboutsummaryrefslogtreecommitdiffstats
path: root/src/spawn-posix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-20 10:05:15 +0000
committerWerner Koch <[email protected]>2024-06-20 10:05:15 +0000
commita59e902b887fd92337c9728f668cf9c89da3957a (patch)
tree6fa6170bbef30de3b00fbcd4972055571c4cf1fc /src/spawn-posix.c
parentPost release updates (diff)
downloadlibgpg-error-a59e902b887fd92337c9728f668cf9c89da3957a.tar.gz
libgpg-error-a59e902b887fd92337c9728f668cf9c89da3957a.zip
core: Declare environ for macOS and others.
* src/spawn-posix.c (environ): Declare. -- GnuPG-bug-id: 7169
Diffstat (limited to 'src/spawn-posix.c')
-rw-r--r--src/spawn-posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c
index 7de02a9..96f1536 100644
--- a/src/spawn-posix.c
+++ b/src/spawn-posix.c
@@ -57,6 +57,9 @@
#include "gpgrt-int.h"
+/* (Only glibc's unistd.h declares this iff _GNU_SOURCE is used.) */
+extern char **environ;
+
/* Definition for the gpgrt_spawn_actions_t. Note that there is a
* different one for Windows. */