Home GnuPG

Fix building for Win64 target

Description

Fix building for Win64 target

* random/random-csprng.c [HAVE_W32_SYSTEM]: Include <windows.h>.
* tests/bench-slope.c [_WIN32]: Include <windows.h>.

Removal of <winsock2.h> include from 'gcrypt.h' broke building
random-csprng.c and bench-slope.c on x86_64-w64-mingw32 target.

  • GnuPG-bug-id: T5637
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Oct 6 2021, 6:12 PM
Parents
rC71d4d592d891: build,gcrypt.h: Don't define gcry_socklen_t.
Branches
Unknown
Tags
Unknown
Tasks
T5637: Use poll for libgcrypt (support more than 1024 fds)