[Mesa-dev] [android-x86-devel] [PATCH 2/2] egl: use CLOCK_MONOTONIC only when available
Emil Velikov
emil.l.velikov at gmail.com
Tue May 31 14:50:18 UTC 2016
On 31 May 2016 at 01:00, Mauro Rossi <issor.oruam at gmail.com> wrote:
> Fixes the following building error:
>
> external/mesa/src/egl/drivers/dri2/egl_dri2.c:2476: error: undefined reference to 'pthread_condattr_setclock'
> collect2: error: ld returned 1 exit status
>
> Cc: <mesa-stable at lists.freedesktop.org>
> ---
Afaict this doesn't seems right:
- I cannot see anyone that defines the HAVE_PTHREAD_CONDATTR_SETCLOCK
and HAVE_CLOCK_MONOTONIC macros, Thus this change forces the new
codepath for everyone - android, scons, automake.
- Various other places in mesa (that Android builds) already use
clock_gettime(CLOCK_MONOTONIC...) so that should not be an issue,
right ?
- About the undefined pthread_condattr_setclock symbol... Is this an
issue with Android 4.4 only ? I would imagine that other programs use
the symbol, so one could port the functionality (from say Android 5.x)
within Android itself ?
Regards,
Emil
More information about the mesa-dev
mailing list