Bug 93764

Summary: [PATCH] Fix building on musl-libc
Product: DRI Reporter: Kylie McClain <kylie>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
0001-Fix-building-on-musl-libc.patch none

Description Kylie McClain 2016-01-18 21:07:00 UTC
Created attachment 121121 [details]
0001-Fix-building-on-musl-libc.patch

libdrm git master fails to compile due to undefined functions/constants on musl libc. The attached patch fixes it.
Comment 1 Emil Velikov 2016-01-19 08:07:11 UTC
Hi Kylie, can you please send this to the dri-devel ML for review.
I'm afraid that not many people search through bugzilla for patches.

But before that please take a look at my comment [1] about select, and split off the poll change into a separate patch (rewording things alike "use the POSIX# header")

Thanks
P.S. Please CC me on the patches

[1] http://lists.freedesktop.org/archives/dri-devel/2016-January/097833.html
Comment 2 Kylie McClain 2016-01-20 03:35:38 UTC
I've sent them to dri-devel and modified them to address your comments.
Comment 3 Emil Velikov 2016-01-26 23:08:21 UTC
All the fixes should be in master now. Thanks again and let us know if we ever goof up on the musl front :-)

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.