Commit 509f7fdc by Kai Tietz Committed by Kai Tietz

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

2009-11-30  Kai Tietz  <Kai.Tietz@onevision.com>

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

From-SVN: r154806
parent a97e4e3f
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> 2009-11-28 Jakub Jelinek <jakub@redhat.com>
* intrinsics/pack_generic.c (pack_internal): Remove unused * intrinsics/pack_generic.c (pack_internal): Remove unused
......
...@@ -1287,6 +1287,9 @@ find_file (const char *file, gfc_charlen_type file_len) ...@@ -1287,6 +1287,9 @@ find_file (const char *file, gfc_charlen_type file_len)
char path[PATH_MAX + 1]; char path[PATH_MAX + 1];
struct stat st[2]; struct stat st[2];
gfc_unit *u; gfc_unit *u;
#if defined(__MINGW32__) && !HAVE_WORKING_STAT
uint64_t id = 0ULL;
#endif
if (unpack_filename (path, file, file_len)) if (unpack_filename (path, file, file_len))
return NULL; return NULL;
...@@ -1295,7 +1298,7 @@ find_file (const char *file, gfc_charlen_type file_len) ...@@ -1295,7 +1298,7 @@ find_file (const char *file, gfc_charlen_type file_len)
return NULL; return NULL;
#if defined(__MINGW32__) && !HAVE_WORKING_STAT #if defined(__MINGW32__) && !HAVE_WORKING_STAT
id_from_path (path); id = id_from_path (path);
#endif #endif
__gthread_mutex_lock (&unit_lock); __gthread_mutex_lock (&unit_lock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment