external/libgpg-error/w32-build-fixes-5.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 350c733a033c3ca233a445b5dda38e1fa64f0c9e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Apr 22 21:42:19 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Apr 22 23:19:34 2022 +0200 external/libgpg-error: Missing include (getpid, Windows) This was apparently missing from d400009e7c74d13f01fda923d7399eac11b83b66 "gpg4libre: update gpgme, libassuan and libgpg-error" but went unnoticed so far due to the traditionally lax handling of missing function declarations in C, and only now started to cause > logging.c(845,57): error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > (unsigned int)getpid (), pidsuf); > ^ with clang-cl 15 trunk after <https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626> "[C11/C2x] Change the behavior of the implicit function declaration warning". Change-Id: I66dc409f629d9bda807bc9cca21a8a5ecdda79be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133338 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/external/libgpg-error/w32-build-fixes-5.patch b/external/libgpg-error/w32-build-fixes-5.patch index 8a65cedea2da..4e04e47a31d8 100644 --- a/external/libgpg-error/w32-build-fixes-5.patch +++ b/external/libgpg-error/w32-build-fixes-5.patch @@ -43,12 +43,13 @@ --- src/logging.c 2020-06-05 18:58:59.254413200 +0200 +++ src/logging.c~ 2019-12-12 15:23:37.000000000 +0100 -@@ -44,7 +44,11 @@ +@@ -44,7 +44,12 @@ # include <netinet/in.h> # include <arpa/inet.h> #endif /*!HAVE_W32_SYSTEM*/ +#ifdef _WIN32 +# include <io.h> ++# include <process.h> +#else +# include <unistd.h> +#endif