Commit 50b8670f authored by Jon Turney's avatar Jon Turney Committed by Adam Jackson

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)
parent 92a52611
......@@ -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 <time.h>
#include <unistd.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment