]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: make sure ismounted.c explicitly pulls in <sys/types.h>
authorTheodore Ts'o <tytso@mit.edu>
Mon, 21 Mar 2016 17:09:54 +0000 (13:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Mar 2016 17:09:54 +0000 (13:09 -0400)
commit8f6f8602dc1037fb8fc2051fb062c0209f8baa2a
tree9dadb260884b434c7313882dbc69d34efb0adae1
parent31ddef52baa2ae6622dbe9f2e9be74b430fe9de0
libext2fs: make sure ismounted.c explicitly pulls in <sys/types.h>

The major() cpp macro is defined as requiring sys/types.h to be
included with _BSD_SOURCE defined.  However, in older glibc's this
hasn't been strictly required and the stdlib.h header file included
sys/types.h implicitly.  Fix this so that more aggressive
distributions run into build errors.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
in with andchanges. Lines starting
lib/ext2fs/ismounted.c