From fc9a2819eb5ccc0e716db4016d0245170a68581c Mon Sep 17 00:00:00 2001 From: Zoltan Fridrich Date: Thu, 22 Feb 2024 18:15:37 +0100 Subject: [PATCH] Fix mingw build failure Related: RHEL-35857 Signed-off-by: Zoltan Fridrich --- gnutls-3.8.3-fix-mingw-build.patch | 12 ++++++++++++ gnutls.spec | 1 + 2 files changed, 13 insertions(+) create mode 100644 gnutls-3.8.3-fix-mingw-build.patch diff --git a/gnutls-3.8.3-fix-mingw-build.patch b/gnutls-3.8.3-fix-mingw-build.patch new file mode 100644 index 0000000..3e3a149 --- /dev/null +++ b/gnutls-3.8.3-fix-mingw-build.patch @@ -0,0 +1,12 @@ +diff --color -ruNp a/lib/system/sockets.c b/lib/system/sockets.c +--- a/lib/system/sockets.c 2024-01-16 03:36:04.000000000 +0100 ++++ b/lib/system/sockets.c 2024-02-22 16:20:48.900495575 +0100 +@@ -208,7 +208,7 @@ int gnutls_system_recv_timeout(gnutls_tr + } while (ret == -1 && errno == EINTR); + #else + fd_set rfds; +- struct timeval _tv, *tv = NULL; ++ TIMEVAL _tv, *tv = NULL; + + FD_ZERO(&rfds); + FD_SET(fd, &rfds); diff --git a/gnutls.spec b/gnutls.spec index 4508067..27140bf 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -19,6 +19,7 @@ Patch: gnutls-3.2.7-rpath.patch # follow https://gitlab.com/gnutls/gnutls/-/issues/1443 Patch: gnutls-3.7.8-ktls_skip_tls12_chachapoly_test.patch Patch: gnutls-3.8.3-kernel_version_check.patch +Patch: gnutls-3.8.3-fix-mingw-build.patch %bcond_without bootstrap %bcond_without dane