Whamcloud - gitweb
lib/ext2fs: don't warn about lack of getmntent on Windows
[tools/e2fsprogs.git] / lib / ext2fs / ismounted.c
index fe64e8b..8fc0b99 100644 (file)
@@ -408,7 +408,7 @@ errcode_t ext2fs_check_mount_point(const char *device, int *mount_flags,
 #ifdef HAVE_GETMNTINFO
                retval = check_getmntinfo(device, mount_flags, mtpt, mtlen);
 #else
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(_WIN32)
  #warning "Can't use getmntent or getmntinfo to check for mounted filesystems!"
 #endif
                *mount_flags = 0;