Created attachment 426962 [details]
But IMHO this is not directly due to the removal of sysmacros.h from types.h. They check what to include in the buildsystem, set defines and act according to that. In this case they simply forgot to #include <config.h> in tools/backlight_helper.h
I'm confused: major(3) on glibc 2.22 says major() comes from sys/types.h. Has that changed with glibc 2.23 ?
This due to a Gentoo-specific change in glibc-2.23.
Other packages are affected too. See the blocked bug and
This was (mostly) fixed already upstream.
Created attachment 430350 [details, diff]
Include config.h in tools/backlight_helper.c
Here's a patch to complete the upstream code fix.
*** Bug 579926 has been marked as a duplicate of this bug. ***
*** Bug 580150 has been marked as a duplicate of this bug. ***
*** Bug 580394 has been marked as a duplicate of this bug. ***
sent your patch upstream and added to Gentoo: