On Thu, 11 May 2017 17:17:55 -0400 Adam Jackson <[email protected]> wrote:
> 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 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 <[email protected]> Thanks, pq
pgp9x0lQwNYHS.pgp
Description: OpenPGP digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
