libusbgx: fix build with glibc-2.28
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Thu, 13 Sep 2018 13:27:13 +0000 (15:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 13 Sep 2018 18:51:55 +0000 (20:51 +0200)
commitc5a7028d497d661525fff90dd77e4b62bdf5daa0
treebcfec4240757d7ec47cefc4a34a738b979cd4a93
parentf99efd731c2e4f8f64ce312d535b55f1025eb593
libusbgx: fix build with glibc-2.28

Since https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html sys/sysmacros.h
must be explicitly included.
Without sys/sysmacros.h and with glibc-2.28 build fails with error like:
src/.libs/libusbgx.so: undefined reference to minor' src/.libs/libusbgx.so: undefined reference tomajor'
src/.libs/libusbgx.so: undefined reference to `makedev'

backport pr #29 (https://github.com/libusbgx/libusbgx/pull/29) (now applied)

Fixes:

  http://autobuild.buildroot.net/results/872e2ab084c0c9bf466265d2f66140fbba692ee6/

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libusbgx/0001-Add-include-of-sys-sysmacro.h.patch [new file with mode: 0644]