[PATCH xserver 2/2] meson: Fix CLOCK_MONOTONIC test

Adam Jackson ajax at redhat.com
Thu May 11 21:17:55 UTC 2017


C99 isn't enough on its own to get POSIX feature sets defined.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 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



More information about the xorg-devel mailing list