summaryrefslogtreecommitdiff
path: root/libgfortran/io/open.c
diff options
context:
space:
mode:
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-23 20:43:54 +0000
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-23 20:43:54 +0000
commitdaad4fd542e74d22445a05a5be91761f094d4f27 (patch)
tree5d5bd3e427e9311346a6f6558c309b3c7348fc9d /libgfortran/io/open.c
parent25b29122d906c4a4c1902a441ac3f2aecff90e5e (diff)
downloadgcc-daad4fd542e74d22445a05a5be91761f094d4f27.tar.gz
PR libfortran/23272
* acinclude.m4 (LIBGFOR_CHECK_WORKING_STAT): New check. * configure.ac: Use LIBGFOR_CHECK_WORKING_STAT. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * io/unix.c (compare_file_filename): Add fallback case for systems without working stat. * io/open.c (already_open): Correct call to compare_file_filename. * io/io.h: Correct proto for compare_file_filename. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105824 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/open.c')
-rw-r--r--libgfortran/io/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c
index e1e42ad9370..203964b5dea 100644
--- a/libgfortran/io/open.c
+++ b/libgfortran/io/open.c
@@ -415,7 +415,7 @@ already_open (gfc_unit * u, unit_flags * flags)
/* If the file is connected to something else, close it and open a
new unit. */
- if (!compare_file_filename (u->s, ioparm.file, ioparm.file_len))
+ if (!compare_file_filename (u, ioparm.file, ioparm.file_len))
{
if (close_unit (u))
{