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

Pekka Paalanen ppaalanen at gmail.com
Fri May 12 09:13:01 UTC 2017


On Thu, 11 May 2017 17:17:55 -0400
Adam Jackson <ajax at redhat.com> wrote:

> 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

Hi Adam,

this indeed fixes the CLOCK_MONOTONIC for me. The whole xserver build
succeeds now, just a few screenfuls of compiler warnings, no errors.
For both patches:

Tested-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170512/d5a1d319/attachment.sig>


More information about the xorg-devel mailing list