aboutsummaryrefslogtreecommitdiff
path: root/lib/ext2fs/ismounted.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext2fs/ismounted.c')
-rw-r--r--lib/ext2fs/ismounted.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ext2fs/ismounted.c b/lib/ext2fs/ismounted.c
index 3552a1b7..26e80545 100644
--- a/lib/ext2fs/ismounted.c
+++ b/lib/ext2fs/ismounted.c
@@ -296,7 +296,9 @@ errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags,
#ifdef HAVE_GETMNTINFO
return check_getmntinfo(device, mount_flags, mtpt, mtlen);
#else
+#ifdef __GNUC__
#warning "Can't use getmntent or getmntinfo to check for mounted filesystems!"
+#endif
*mount_flags = 0;
return 0;
#endif /* HAVE_GETMNTINFO */