+++ src/spawn-posix.c 2024-06-21 10:44:49.676834437 +0200 +++ src/spawn-posix.c 2024-06-21 10:45:09.008841639 +0200 @@ -58,6 +58,9 @@ #define _GPGRT_NEED_AFLOCAL 1 #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. */ struct gpgrt_spawn_actions {