mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:e3a8013de8("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> (cherry picked from commitf9a7e6e854)
This commit is contained in:
parent
372f8f5c53
commit
8f4094bb1c
2 changed files with 3 additions and 1 deletions
|
|
@ -931,7 +931,7 @@
|
|||
"description": "meson: build with _ISOC11_SOURCE on OpenBSD",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "e3a8013de8ca854d21225be00f123ccf63f9060f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -958,6 +958,8 @@ elif host_machine.system() == 'windows'
|
|||
else
|
||||
pre_args += ['-D__MSVCRT_VERSION__=0x0700']
|
||||
endif
|
||||
elif host_machine.system() == 'openbsd'
|
||||
pre_args += '-D_ISOC11_SOURCE'
|
||||
endif
|
||||
|
||||
# Check for generic C arguments
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue