From c3caeb9305dea922bfe3ed71e006e567bb25ecb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Dec 2024 00:38:17 -0500 Subject: Handle emscripten and MinGW stubs the same way --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d4b9fcd..96a6d27 100644 --- a/meson.build +++ b/meson.build @@ -308,6 +308,11 @@ int main(void) { sem_t s; struct timespec t; return sem_timedwait(&s, &t); }''', continue endif + if cc.get_id() == 'emscripten' and name in ['flock', 'fileno'] + message('Ignoring emscripten stub @0@'.format(name)) + continue + endif + if cc.links(check_code, args: check_c_args, name: name) platform_c_args += ['-DHAVE_@0@'.format(name.to_upper())] endif -- cgit v1.2.1