From 2b74d4d86d7ae7af247ac80624cef2a6d7729a51 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 19 Nov 2016 05:16:03 -0800 Subject: [PATCH] Work around issue using msys2 provided zlib https://bugzilla.gnome.org/show_bug.cgi?id=775281 --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meson.build b/meson.build index c774c474ea..04358f6729 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,14 @@ subprojects = [ 'gst-plugins-good', ] +cc = meson.get_compiler('c') +if not meson.is_subproject() and cc.get_id() == 'msvc' + # Make it possible to use msys2 built zlib + # which fails when not using the mingw toolchain as + # it uses unistd.h + add_global_arguments('-DZ_SOLO', language: 'c') +endif + # FIXME Remove that check once we have ffmpeg as a gst-libav subproject libavfilter_dep = dependency('libavfilter', version: '>= 6.47.100', required: false) gst_libav = []