]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fsck: Fix build problem on MacOS X
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Jun 2008 23:01:46 +0000 (19:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Jun 2008 01:32:07 +0000 (21:32 -0400)
Addresses-Sourceforge-Bug: #1972473

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/ismounted.c

index 72f4cbae090ac653e7fe6d7d2099d341c6694f88..546277aceeed74dbd7367df61f2ad1b147446026 100644 (file)
@@ -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)