From 8f363ce5b502ba1bb7a49a09857dac3aa544c73a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 20 Sep 2019 12:19:52 -0700 Subject: [PATCH] meson: only build timspec test if timespec is available Reviewed-by: Eric Engestrom Acked-by: Kristian H. Kristensen --- src/util/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/meson.build b/src/util/meson.build index 8260fba..096a3d9 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -271,7 +271,9 @@ if with_tests subdir('tests/fast_urem_by_const') subdir('tests/hash_table') subdir('tests/string_buffer') - subdir('tests/timespec') + if cc.has_header('sys/time.h') # MinGW has this, but Vanilla windows doesn't + subdir('tests/timespec') + endif subdir('tests/vma') subdir('tests/set') endif -- 2.7.4