File libsoup-3.6.5-mingw-build-fixes.patch of Package mingw32-libsoup3

diff -ur libsoup-3.6.5.orig/meson.build libsoup-3.6.5/meson.build
--- libsoup-3.6.5.orig/meson.build	2025-03-21 19:30:16.000000000 +0100
+++ libsoup-3.6.5/meson.build	2025-09-30 21:06:45.806515332 +0200
@@ -115,9 +115,11 @@
 cdata.set('GLIB_VERSION_MAX_ALLOWED', 'GLIB_VERSION_2_70')
 cdata.set('GLIB_VERSION_MIN_REQUIRED', 'GLIB_VERSION_2_70')
 
-libnghttp2_dep = dependency('libnghttp2')
-if (libnghttp2_dep.version() == 'unknown' and (libnghttp2_dep.type_name() == 'internal' or cc.has_function('nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation', prefix : '#include <nghttp2/nghttp2.h>', dependencies : libnghttp2_dep))) or libnghttp2_dep.version().version_compare('>=1.50')
-    cdata.set('HAVE_NGHTTP2_OPTION_SET_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION', '1')
+if host_system != 'windows'
+  libnghttp2_dep = dependency('libnghttp2')
+  if (libnghttp2_dep.version() == 'unknown' and (libnghttp2_dep.type_name() == 'internal' or cc.has_function('nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation', prefix : '#include <nghttp2/nghttp2.h>', dependencies : libnghttp2_dep))) or libnghttp2_dep.version().version_compare('>=1.50')
+      cdata.set('HAVE_NGHTTP2_OPTION_SET_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION', '1')
+  endif
 endif
 
 sqlite_dep = dependency('sqlite3', required: false)
@@ -139,11 +141,12 @@
   cdata.set('WITH_BROTLI', true)
 endif
 
-unix_socket_dep = dependency('gio-unix-2.0',
-                             version : glib_required_version,
-                             fallback: ['glib', 'libgiounix_dep'],
-                             required : false)
-
+if host_system != 'windows'
+  unix_socket_dep = dependency('gio-unix-2.0',
+                               version : glib_required_version,
+                               fallback: ['glib', 'libgiounix_dep'],
+                               required : false)
+endif
 platform_deps = []
 is_static_library = get_option('default_library') == 'static'
 if not is_static_library
openSUSE Build Service is sponsored by