]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
include sys/sysmacros.h as needed
authorMike Frysinger <vapier@gentoo.org>
Fri, 19 May 2017 17:25:59 +0000 (13:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 May 2017 17:25:59 +0000 (13:25 -0400)
commit3fb715b55426875902dfef3056b2cf7335953178
tree899c0c8b05b28f9d3dce698c86e197916f192a97
parente3d591eb1dfc6e03639171b120d48e8738deff04
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.

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