diff --git a/subprojects/libsoup.wrap b/subprojects/libsoup.wrap index 4a12f2c6c1..bbb46dd0b8 100644 --- a/subprojects/libsoup.wrap +++ b/subprojects/libsoup.wrap @@ -4,6 +4,7 @@ source_url = https://download.gnome.org/sources/libsoup/2.74/libsoup-2.74.3.tar. source_fallback_url = https://ftp.acc.umu.se/pub/gnome/sources/libsoup/2.74/libsoup-2.74.3.tar.xz source_filename = libsoup-2.74.3.tar.xz source_hash = e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13 +diff_files = libsoup-2.74.3/0001-Workaround-MinGW-build-werror.patch [provide] libsoup-2.4 = libsoup_dep diff --git a/subprojects/packagefiles/libsoup-2.74.3/0001-Workaround-MinGW-build-werror.patch b/subprojects/packagefiles/libsoup-2.74.3/0001-Workaround-MinGW-build-werror.patch new file mode 100644 index 0000000000..c19aa71325 --- /dev/null +++ b/subprojects/packagefiles/libsoup-2.74.3/0001-Workaround-MinGW-build-werror.patch @@ -0,0 +1,30 @@ +From 2aeb31086b665eac6dc70c5259056d9c1eb819ea Mon Sep 17 00:00:00 2001 +From: Seungha Yang +Date: Tue, 9 Jul 2024 22:53:11 +0900 +Subject: [PATCH] Workaround MinGW build werror + +../libsoup/soup-socket.c:1325:29: error: +passing argument 4 of 'setsockopt' from incompatible pointer type [-Wincompatible-pointer-types] +--- + meson.build | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/meson.build b/meson.build +index 130f813..b00f3e8 100644 +--- a/meson.build ++++ b/meson.build +@@ -70,6 +70,11 @@ else + '-Wno-format-zero-length', + ] + ++ if host_system == 'windows' ++ # setsockopt() argument type mismatch ++ test_cflags += ['-Wno-incompatible-pointer-types'] ++ endif ++ + common_flags += cc.get_supported_arguments(test_cflags) + endif + +-- +2.44.0.windows.1 +