1From a59e902b887fd92337c9728f668cf9c89da3957a Mon Sep 17 00:00:00 2001 2From: Werner Koch <wk@gnupg.org> 3Date: Thu, 20 Jun 2024 12:05:15 +0200 4Subject: [PATCH] core: Declare environ for macOS and others. 5 6* src/spawn-posix.c (environ): Declare. 7-- 8 9GnuPG-bug-id: 7169 10--- 11 src/spawn-posix.c | 3 +++ 12 1 file changed, 3 insertions(+) 13 14diff --git a/src/spawn-posix.c b/src/spawn-posix.c 15index 7de02a9..96f1536 100644 16--- src/spawn-posix.c 17+++ src/spawn-posix.c 18@@ -57,6 +57,9 @@ 19 20 #include "gpgrt-int.h" 21 22+/* (Only glibc's unistd.h declares this iff _GNU_SOURCE is used.) */ 23+extern char **environ; 24+ 25 26 /* Definition for the gpgrt_spawn_actions_t. Note that there is a 27 * different one for Windows. */ 28-- 292.30.2 30 31