atop: fix minor()/major() build failure due to glibc 2.28
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Tue, 28 Aug 2018 13:31:31 +0000 (15:31 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 28 Aug 2018 20:43:26 +0000 (22:43 +0200)
commit4ffde065d2829d90cddc70f7c2e8f5775e59cbe9
treed6dfa1f452b3b07f161a4e68e700fac6f822c876
parent91d65f300016517eee95cc7f0bdf719a124a2af5
atop: 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. See glibc upstream commit:

  https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e16deca62e16f645213dffd4ecd1153c37765f17

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

Patch has been taken from atop upstream pull request:

  https://github.com/Atoptool/atop/pull/35

Fixes:

  http://autobuild.buildroot.net/results/3fc0f18ed94697c404e7ff3751781789170c4fe5/

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
[Thomas: improve commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/atop/0001-Include-sysmacros.h-to-compile-with-newer-gcc.patch [new file with mode: 0644]