venus: fix the RHEL8 build by using syscall for gettid
authorMarek Olšák <marek.olsak@amd.com>
Thu, 13 Apr 2023 19:38:03 +0000 (15:38 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Apr 2023 05:16:33 +0000 (05:16 +0000)
commit171d31640262020af5b45d62839701dba45f44cf
treeb1a880d31360d749c6ff39b6356de28f1c355bc9
parent2c5a2f1a054259602b47ae5e3e493426bdab503c
venus: fix the RHEL8 build by using syscall for gettid

src/virtio/vulkan/vn_common.c: In function ‘vn_ring_monitor_acquire’:
src/virtio/vulkan/vn_common.c:129:16: error: implicit declaration of function ‘gettid’; did you mean ‘getgid’? [-Werror=implicit-function-declaration]
  129 |    pid_t tid = gettid();

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22489>
src/virtio/vulkan/vn_common.c