From: Dylan Baker Date: Fri, 20 Sep 2019 19:19:52 +0000 (-0700) Subject: meson: only build timspec test if timespec is available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f363ce5b502ba1bb7a49a09857dac3aa544c73a;p=mesa.git meson: only build timspec test if timespec is available Reviewed-by: Eric Engestrom Acked-by: Kristian H. Kristensen --- diff --git a/src/util/meson.build b/src/util/meson.build index 8260fbab2de..096a3d9f902 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