meson: only build timspec test if timespec is available

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Dylan Baker 2019-09-20 12:19:52 -07:00
parent fe8f8981d0
commit 8f363ce5b5

View file

@ -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