ltp: backport upstream patch to build with glibc 2.27

This backports the commit below to make it build with glibc 2.27.

commit b0bd0ad871ce94fcb83084bc573c8eeb99fbc508
Author: Matthew Dawson <matthew@mjdsystems.ca>
Date:   Thu Aug 24 00:53:46 2017 -0400

    misc: Add sys/sysmacros.h header to includes when makedev is used.

    According to makedev(3), the makedev macro is defined in sys/sysmacros.h.
    On later versions of glibc, this seems to now be enforced and the build
    fails.  Once added the code compiles as usual.

    Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>

BUG=chromium:895954
TEST=emerge-kevin autotest-deps-ltp with glibc 2.27

Change-Id: I8da5eb170fc20ea28dad307d4b9b6a33d34a5fbb
Reviewed-on: https://chromium-review.googlesource.com/1285389
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
6 files changed