meson: only build timspec test if timespec is available
authorDylan Baker <dylan@pnwbakers.com>
Fri, 20 Sep 2019 19:19:52 +0000 (12:19 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 10 Oct 2019 23:33:04 +0000 (16:33 -0700)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
src/util/meson.build

index 8260fbab2de9b65a057a10e4bb40ce8a9775dbcc..096a3d9f90245a2e4f3895e698f3142ee638e236 100644 (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