This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47802] [4.6 Regression] libgfortran/intrinsics/ctime.c:75:3: error: too few arguments to function 'ctime_r'
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Feb 2011 19:53:57 +0000
- Subject: [Bug libfortran/47802] [4.6 Regression] libgfortran/intrinsics/ctime.c:75:3: error: too few arguments to function 'ctime_r'
- Auto-submitted: auto-generated
- References: <bug-47802-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47802
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--- Comment #1 from Jeffrey A. Law <law at redhat dot com> 2011-02-18 19:53:35 UTC ---
Is there no way to get a posix compliant ctime? Alternatively, we'll need
autoconf magic to detect the extra arg. I know at one time it was relatively
common, so autoconf magic might be around somewhere. Assuming it is you just
have to do something like
#if defined (oddballctime)
*date = ctime_r (&now, cbuf, CSZ);
#else
*date = ctime_r (&now, cbuf);
#endif