subprojects: Fix libsoup build on windows with gcc14

Same reason as https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1526

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7326>
This commit is contained in:
Edward Hervey 2024-07-31 09:49:34 +02:00 committed by GStreamer Marge Bot
parent 2263caff45
commit a92ea884ef
2 changed files with 31 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,30 @@
From 2aeb31086b665eac6dc70c5259056d9c1eb819ea Mon Sep 17 00:00:00 2001
From: Seungha Yang <seungha@centricular.com>
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