]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - configure.ac
Don't assume that the presence of mntent.h means that setmntent() exists
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Apr 2012 22:31:09 +0000 (15:31 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 5 Apr 2012 22:31:09 +0000 (15:31 -0700)
commitb24efa218794b567c27ad99db319b4bd5d696958
tree96075639a63da5d83a8d2d681eb311abfe91319b
parentd47e2af76351090588ee2be3d85a2c31eb383223
Don't assume that the presence of mntent.h means that setmntent() exists

Change autoconf to test for setmntent() and use that to decide whether
to use getmntent() and setmntent(), since some systems don't have
setmntent() but they do have the mntent.h header file.

Also, remove the includes of mntent.h from e2fsck and mke2fs and other
places where it is not needed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in
e2fsck/iscan.c
e2fsck/scantest.c
e2fsck/unix.c
lib/config.h.in
lib/ext2fs/ismounted.c
misc/ismounted.c
misc/mke2fs.c