This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31335] Calls lstat(), stat() and fstat() in libgfortran should be protected by autoconf HAVE_{L,,F}STAT macros
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Apr 2007 19:56:33 -0000
- Subject: [Bug libfortran/31335] Calls lstat(), stat() and fstat() in libgfortran should be protected by autoconf HAVE_{L,,F}STAT macros
- References: <bug-31335-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2007-04-13 20:56 -------
Subject: Bug 31335
Author: fxcoudert
Date: Fri Apr 13 20:56:19 2007
New Revision: 123796
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123796
Log:
PR libfortran/31335
* intrinsics/stat.c: Only provide STAT and FSTAT library routines
if stat() and fstat() library functions are available. When lstat()
is not available, use stat() instead.
* configure.ac: Add checks for stat, fstat and lstat.
* configure: Regenerate.
* config.h.in: Regenerate.
Modified:
branches/gcc-4_2-branch/libgfortran/ChangeLog
branches/gcc-4_2-branch/libgfortran/config.h.in
branches/gcc-4_2-branch/libgfortran/configure
branches/gcc-4_2-branch/libgfortran/configure.ac
branches/gcc-4_2-branch/libgfortran/intrinsics/stat.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31335