meson: build with _ISOC11_SOURCE on OpenBSD
authorJonathan Gray <jsg@jsg.id.au>
Fri, 6 Dec 2019 03:30:14 +0000 (14:30 +1100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 09:14:57 +0000 (09:14 +0000)
commitf9a7e6e854ddedafd3c85f7eaeca1a00ee7bced5
treec5cf8bec6f39b4c25b904739524583b8e94b505c
parent6e9c0661f8538cdabe7d7de73af11b4165f51f93
meson: build with _ISOC11_SOURCE on OpenBSD

Mesa builds with -std=c99 but uses timespec_get() a c11 function.
Build with _ISOC11_SOURCE for c11 visibility when -std is specified.
On linux c11 visibility comes from defining _GNU_SOURCE.

Fixes: e3a8013de8c ("util/u_queue: add util_queue_fence_wait_timeout")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
meson.build