diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-04-22 21:42:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-04-22 23:19:34 +0200 |
commit | 350c733a033c3ca233a445b5dda38e1fa64f0c9e (patch) | |
tree | 74b6df05d7313eb441436513cf0111a822bab517 /external | |
parent | 89c34706331984d12af8ce99444d53f19b40b496 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/libgpg-error/w32-build-fixes-5.patch | 3 |
1 files changed, 2 insertions, 1 deletions
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 |