include sys/sysmacros.h as needed 72/221372/1
authorMike Frysinger <vapier@gentoo.org>
Fri, 19 May 2017 17:25:59 +0000 (13:25 -0400)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 2 Jan 2020 02:29:31 +0000 (11:29 +0900)
commite5a892568d7e0768b334b8dadf0acb8c0ca7e252
tree2bfd55c59aa8c76b0bf49c31c33b106f2971197e
parentae8fc707aa8d043deb40a8c78bbbd35612e7fcb4
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>
(cherry picked from commit 3fb715b55426875902dfef3056b2cf7335953178)

Change-Id: If05342f36613523bcb93e010c23f3c33a22fe07a
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