From 50b8670fdf7ab9195617145c229d8fae8519f5a9 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 26 Apr 2019 01:00:28 +0100 Subject: [PATCH] meson: Require clock_gettime() as well for MONOTONIC_CLOCK As configure.ac, require that clock_gettime() exists as well to use MONOTONIC_CLOCK (MinGW provides the define, but not the function) --- include/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/meson.build b/include/meson.build index 144d82061..3f3024b50 100644 --- a/include/meson.build +++ b/include/meson.build @@ -20,7 +20,8 @@ conf_data.set('HAVE_TYPEOF', cc.compiles(''' ''', name: 'typeof()')) -conf_data.set('MONOTONIC_CLOCK', cc.compiles(''' +conf_data.set('MONOTONIC_CLOCK', cc.has_function('clock_gettime') and +cc.compiles(''' #define _POSIX_C_SOURCE 200112L #include #include