unix.c (find_file): Add variable id conditionally for mingw targets.
authorKai Tietz <kai.tietz@onevision.com>
Mon, 30 Nov 2009 14:12:33 +0000 (15:12 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 30 Nov 2009 14:12:33 +0000 (15:12 +0100)
2009-11-30  Kai Tietz  <Kai.Tietz@onevision.com>

        * io/unix.c (find_file): Add variable id conditionally for
        mingw targets.

From-SVN: r154806

libgfortran/ChangeLog
libgfortran/io/unix.c

index e4d2578017ba6e57d583885062eb426bce8f61d9..e84d844c29c7e73fb25d2abb569755e4f117c58e 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-30  Kai Tietz  <Kai.Tietz@onevision.com>
+
+       * io/unix.c (find_file): Add variable id conditionally for
+       mingw targets.
+
 2009-11-28  Jakub Jelinek  <jakub@redhat.com>
 
        * intrinsics/pack_generic.c (pack_internal): Remove unused
index 011d426471b511e8623ff4646902bf97be5cfbab..8b324759a733ad28a2c5d198b033e7a56e75c683 100644 (file)
@@ -1287,6 +1287,9 @@ find_file (const char *file, gfc_charlen_type file_len)
   char path[PATH_MAX + 1];
   struct stat st[2];
   gfc_unit *u;
+#if defined(__MINGW32__) && !HAVE_WORKING_STAT
+  uint64_t id = 0ULL;
+#endif
 
   if (unpack_filename (path, file, file_len))
     return NULL;
@@ -1295,7 +1298,7 @@ find_file (const char *file, gfc_charlen_type file_len)
     return NULL;
 
 #if defined(__MINGW32__) && !HAVE_WORKING_STAT
-  id_from_path (path);
+  id = id_from_path (path);
 #endif
 
   __gthread_mutex_lock (&unit_lock);