Bug 107158 - When compiling against musl libc, pthread.h is not included in radv_amdgpu_winsys
Summary: When compiling against musl libc, pthread.h is not included in radv_amdgpu_wi...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: 18.0
Hardware: All Linux (All)
: medium minor
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-08 21:08 UTC by ronchaine
Modified: 2018-07-09 06:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to include pthread.h (527 bytes, patch)
2018-07-08 21:08 UTC, ronchaine
Details | Splinter Review

Description ronchaine 2018-07-08 21:08:45 UTC
Created attachment 140514 [details] [review]
Patch to include pthread.h

amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h does not #include <pthread.h>,
which causes compilation to fail when compiling against musl libc.

Adding the #include <pthread.h> line fixes the issue.  Patch attached.
Comment 1 Bas Nieuwenhuizen 2018-07-08 23:10:44 UTC
Should be fixed by

https://gitlab.freedesktop.org/mesa/mesa/commit/1a1f2b134c4bdb502659724e232a9e009287fe58

which is already upstream?
Comment 2 ronchaine 2018-07-09 06:26:26 UTC
Yeah, seems like that should've fixed it.

Seems like it just didn't make it into 18.1.3 yet.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.