From 2a6b60488feb819bae7e506281ebe37e6091b5d6 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 7 Jun 2008 19:01:46 -0400 Subject: [PATCH] fsck: Fix build problem on MacOS X Addresses-Sourceforge-Bug: #1972473 Signed-off-by: "Theodore Ts'o" --- misc/ismounted.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/ismounted.c b/misc/ismounted.c index 72f4cba..546277a 100644 --- a/misc/ismounted.c +++ b/misc/ismounted.c @@ -74,6 +74,7 @@ static char *parse_word(char **buf) static errcode_t check_mntent_file(const char *mtab_file, const char *file, int *mount_flags) { +#ifdef HAVE_MNTENT_H struct stat st_buf; errcode_t retval = 0; dev_t file_dev=0, file_rdev=0; @@ -177,6 +178,9 @@ static errcode_t check_mntent_file(const char *mtab_file, const char *file, errout: endmntent (f); return retval; +#else /* !HAVE_MNTENT_H */ + return 0; +#endif /* HAVE_MNTENT_H */ } int is_mounted(const char *file) -- 1.8.3.1