summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2019-09-20 12:19:52 -0700
committerDylan Baker <[email protected]>2019-10-10 16:33:04 -0700
commit8f363ce5b502ba1bb7a49a09857dac3aa544c73a (patch)
treea98ba58b16e24f6d291d795e42d70ae854a48a12
parentfe8f8981d003ea8b1e21614944a58b80a158cd1e (diff)
meson: only build timspec test if timespec is available
Reviewed-by: Eric Engestrom <[email protected]> Acked-by: Kristian H. Kristensen <[email protected]>
-rw-r--r--src/util/meson.build4
1 files changed, 3 insertions, 1 deletions
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