[PATCH libdrm v2 4/4] meson.build: Fix meson script on FreeBSD

Niclas Zeising zeising at daemonic.se
Mon Jun 17 09:20:43 UTC 2019


On 2019-06-17 11:14, Eric Engestrom wrote:
> On Sunday, 2019-06-16 14:23:43 +0100, Emil Velikov wrote:
>> From: Niclas Zeising <zeising at daemonic.se>
>>
>> FreeBSD requires sys/types.h for sys/sysctl.h, add it as part of the
>> includes when checking for headers.
>> Instead of splitting out the check for sys/sysctl.h from the other
>> header checks, just add sys/types.h to all header checks.
>>
>> v2 [Emil]
>>   - add inline comment
>>   - drop bash/sh hunk
>>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> 
> Series is:
> Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
> 
> But I agree with Emil, it's a FreeBSD bug for it to not include
> a required header, this should also be fixed upstream.

I'm not sure if my e-mails are getting to the mailing list.  This is the 
way it's documented in FreeBSD, and there is a lot of legacy reasons it 
is this way.  I doubt it will change, and even if it does, there will be 
about 5 years of transition period before all supported releases has the 
change, most likely.

This is the first time, to my knowledge, this issue has come up.

(I'm not saying I disagree with you, just saying it's probably easier to 
patch here rather than try to change upstream.)

Regards
-- 
Niclas


More information about the dri-devel mailing list