OSDN Git Service

include sys/sysmacros.h as needed
authorMike Frysinger <vapier@gentoo.org>
Fri, 19 May 2017 17:25:59 +0000 (13:25 -0400)
committerElliott Hughes <enh@google.com>
Fri, 19 May 2017 18:32:53 +0000 (11:32 -0700)
commit95e97131a0e96ad2c30c67d1c167dc586619486b
treeda9815771123f38e5c6fa4b2a290222fb0a9353b
parent930bc064484de01c6791b0e2fb7aee33fd1aa0c2
include sys/sysmacros.h as needed

The minor/major/makedev macros are not entirely standard.  glibc has had
the definitions in sys/sysmacros.h since the start, and wants to move away
from always defining them implicitly via sys/types.h (as this pollutes the
namespace in violation of POSIX).  Other C libraries have already dropped
them.  Since the configure script already checks for this header, use that
to pull in the header in files that use these macros.

Change-Id: Ib7f441fe168c2ca72a274978fea422a0c3010e4f
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
lib/blkid/devname.c
lib/blkid/devno.c
lib/ext2fs/finddev.c
lib/ext2fs/ismounted.c
misc/create_inode.c
misc/mk_hugefiles.c