mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
radv: winsys/amdgpu: include missing pthread.h header
pthread types are used in some files without explicitely including pthread.h.
This leads to compile errors on Android 7.x nougat-x86
e.g. in src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
In file included from external/mesa/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c:31:
In file included from external/mesa/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.h:32:
external/mesa/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h:52:2: error: unknown type name 'pthread_mutex_t'
pthread_mutex_t global_bo_list_lock;
^
1 error generated.
Including pthread.h explicitely solves the building error
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
de13978733
commit
1a1f2b134c
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "addrlib/addrinterface.h"
|
||||
#include <amdgpu.h>
|
||||
#include "util/list.h"
|
||||
#include <pthread.h>
|
||||
|
||||
struct radv_amdgpu_winsys {
|
||||
struct radeon_winsys base;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue