From 2d5f57a621579d179d39be1bda2cff2553443ad3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 4 Dec 2021 11:21:09 +0200 Subject: [PATCH 45/45] Meson: Look functions from ws2_32.dll on Windows See osdn #43320 Signed-off-by: Marko Lindqvist --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4c63b981ac..d020392543 100644 --- a/meson.build +++ b/meson.build @@ -202,7 +202,8 @@ priv_functions = [ ] foreach func : priv_functions - if c_compiler.has_function(func) + if c_compiler.has_function(func, + dependencies: ws2_dep) priv_conf_data.set('HAVE_' + func.underscorify().to_upper(), 1) endif endforeach @@ -219,7 +220,8 @@ liblua_functions = [ ] foreach func : liblua_functions - if c_compiler.has_function(func) + if c_compiler.has_function(func, + dependencies: ws2_dep) liblua_conf_data.set('HAVE_' + func.underscorify().to_upper(), 1) endif endforeach -- 2.33.0