C99 isn't enough on its own to get POSIX feature sets defined.
Signed-off-by: Adam Jackson <[email protected]>
---
include/meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/meson.build b/include/meson.build
index 358e04976..2f8882803 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -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
--
2.12.2
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel