mesa: d1edf6e3962e187a1213dd4064ba3b6fb6c3ea4f (master 17.4.0-devel)
u_queue.c:173:7: error: implicit declaration of function 'timespec_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Created attachment 135413 [details] [review]
when building Android, I see a similar error.
external/mesa/src/util/u_queue.c:173: error: undefined reference to 'timespec_get'
clock_gettime(CLOCK_REALTIME, &ts) is equivalent to timespec_get(&ts, TIME_UTC)
but has the advantage that avoids the building error.
Proposed patch is in the attachement.
See also https://lists.freedesktop.org/archives/mesa-dev/2017-November/176381.html
Back again with Xcode 11/macOS Catalina.
../src/util/u_queue.c:176:7: error: implicit declaration of function 'timespec_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Apple clang version 11.0.0 (clang-1188.8.131.52)
Thread model: posix
Sorry, I broke this again.
Here is a fix https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1753
Let me know if it helps, thanks.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1020.