office-gobmx/external/libgpg-error/undeclared-environ-macOS.patch
Xisco Fauli 5a7283a0eb libgpg-error: upgrade to 1.50
Add external/libgpg-error/undeclared-environ-macOS.patch
from a59e902b88
to fix

spawn-posix.c:345:5: error: use of undeclared identifier 'environ'
    environ = act->environ;
    ^
1 error generated.

on macOS.

Downloaded from https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.50.tar.bz2

Change-Id: Ica3a181626429da39651c29482326134ba25d556
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169200
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-21 12:24:16 +02:00

11 lines
362 B
Diff

+++ src/spawn-posix.c 2024-06-21 10:44:49.676834437 +0200
+++ src/spawn-posix.c 2024-06-21 10:45:09.008841639 +0200
@@ -57,6 +57,8 @@
#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. */