meson: Fix CLOCK_MONOTONIC test
C99 isn't enough on its own to get POSIX feature sets defined. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
152375f4e4
commit
49c7425574
|
@ -4,7 +4,10 @@ dri_dep = dependency('dri', required: build_dri2 or build_dri3)
|
|||
conf_data = configuration_data()
|
||||
conf_data.set('_DIX_CONFIG_H_', '1')
|
||||
|
||||
|
||||
|
||||
conf_data.set('MONOTONIC_CLOCK', cc.compiles('''
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
|
|
Loading…
Reference in New Issue
Block a user