Debian Codegraph @

contrib/depends/patches/libgpg-error/declare_environ_macos.patch

raw
1 Subject: [PATCH] core: Declare environ for macOS and others.
2 ---
3 Index: src/spawn-posix.c
4 IDEA additional info:
5 Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
6 <+>UTF-8
7 ===================================================================
8 diff --git a/src/spawn-posix.c b/src/spawn-posix.c
9 --- a/src/spawn-posix.c (revision d18e28a948307fab016b1eed467a70653ca9576e)
10 +++ b/src/spawn-posix.c (revision a59e902b887fd92337c9728f668cf9c89da3957a)
11 @@ -57,6 +57,9 @@
12
13 #include "gpgrt-int.h"
14
15 +/* (Only glibc's unistd.h declares this iff _GNU_SOURCE is used.) */
16 +extern char **environ;
17 +
18
19 /* Definition for the gpgrt_spawn_actions_t. Note that there is a
20 * different one for Windows. */