android-tools: fix minor()/major() build failure due to glibc 2.28
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Sun, 9 Sep 2018 09:59:39 +0000 (11:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Sep 2018 13:14:31 +0000 (15:14 +0200)
commitc8e8f8b0f5f5a283ecfad00401df6e8f9b605f0b
treee437daee4ae6402ab0793f71277d2d4b0d3390c0
parent37492e8b2d89b8e992a89f1ef6bda6afeb14433b
android-tools: fix minor()/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()/minor() are used.

This commit adds a patch to directly include <sys/sysmacros.h> into
all usb_linux.c files where minor() and major() macros are used.

Fixes:
http://autobuild.buildroot.net/results/901/9011c6af71fb81988c2a05f2acee913a2bae2eff//
http://autobuild.buildroot.net/results/142/142c5672fdc44f2d68f18df3509e5051b3295df5//
http://autobuild.buildroot.net/results/b55/b55aa69654e758af5232ae69618ba1ea5c245074//

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/android-tools/0008-Include-sysmacros.h-to-compile-with-glibc-2.28.patch [new file with mode: 0644]