diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-04-22 22:07:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-04-22 23:20:09 +0200 |
commit | b212163587524f723c737d698919cb4fe4e547e6 (patch) | |
tree | c0fad0fa10dc538b811d715579465c2e21a2d36e /external/gpgmepp/w32-include.patch | |
parent | 350c733a033c3ca233a445b5dda38e1fa64f0c9e (diff) |
external/gpgmepp: Missing includes (Windows)
> gpgme-w32spawn.c(288,8): error: call to undeclared function 'open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> fd = open (trans_file, O_RDONLY);
> ^
etc. 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",
which went unnoticed so far due to the traditionally lax handling of missing
function declarations in C.
Change-Id: I805ab10d2b0aae3f8b1f46ffeda57aff2bbcef2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133340
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/gpgmepp/w32-include.patch')
-rw-r--r-- | external/gpgmepp/w32-include.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/external/gpgmepp/w32-include.patch b/external/gpgmepp/w32-include.patch new file mode 100644 index 000000000000..30fdba5f8f26 --- /dev/null +++ b/external/gpgmepp/w32-include.patch @@ -0,0 +1,22 @@ +--- src/data-fd.c ++++ src/data-fd.c +@@ -28,6 +28,9 @@ + #ifdef HAVE_SYS_TYPES_H + # include <sys/types.h> + #endif ++#if defined HAVE_W32_SYSTEM ++#include <io.h> ++#endif + + #include "debug.h" + #include "data.h" +--- src/gpgme-w32spawn.c ++++ src/gpgme-w32spawn.c +@@ -36,6 +36,7 @@ + # include <sys/stat.h> + #endif + #include <stdint.h> ++#include <io.h> + #include <process.h> + + #include "priv-io.h" |