gpm: fix major() build failure due to glibc 2.28
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Sat, 15 Sep 2018 13:23:59 +0000 (15:23 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 16 Sep 2018 08:21:01 +0000 (10:21 +0200)
commita7253fc1c3bbf935c88afcf739966fbac2a6a87c
tree896550018297b889d163b8cbaa39a9de2d89d732
parente5a74ca1293f6e63d16a9e40b9969599efefa600
gpm: fix major() build failure due to glibc 2.28

glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
and therefore <sys/sysmacros.h> must be included explicitly when major()
is used.

This commit adds a patch to directly include <sys/sysmacros.h> into
open_console.c file where major() macro is used.

Patch has been taken from gpm upstream commit:
https://github.com/telmich/gpm/commit/b350aee4ea5785a75cb6ad770f6b768c506ebb70

Fixes:
http://autobuild.buildroot.net/results/f53/f5373a567de619375746f1dcfe312971b85bb810/
http://autobuild.buildroot.net/results/227/227a7edf9304d85645d3e7fa0f930fe2e9b6e752/

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gpm/0005-fix-building-w-newer-glibc.patch [new file with mode: 0644]