[Bug libfortran/47802] [4.6 Regression] libgfortran/intrinsics/ctime.c:75:3: error: too few arguments to function 'ctime_r'
law at redhat dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 18 19:55:00 GMT 2011
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
More information about the Gcc-bugs
mailing list