include sys/sysmacros.h for major/minor
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Apr 2016 16:52:19 +0000 (12:52 -0400)
committerJens Axboe <axboe@fb.com>
Thu, 21 Apr 2016 11:47:26 +0000 (07:47 -0400)
commit250e878ab5f26b32facbb6e134f3738aa1aa0120
treefc6d937d93b0d593aace6b84d74f371a744f1714
parent4b1ddb7afd332431e83ef5f1b9ee0216aef197c4
include sys/sysmacros.h for major/minor

These functions have always been defined in sys/sysmacros.h under
Linux C libraries.  For some, including sys/types.h implicitly
includes that as well, but glibc wants to deprecate that, and some
others already have.  Include the header explicitly for the funcs.

The mtd change is already in upstream mtd-utils too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
os/os-linux.h
oslib/libmtd_common.h