From: Nick Clifton Date: Fri, 11 Apr 2008 09:06:02 +0000 (+0000) Subject: * listing.c (print_timestamp): Use localtime rather than X-Git-Tag: sid-snapshot-20080501~213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5a35a5552aae7aa5559fd523e990c4f7fc2266e;p=external%2Fbinutils.git * listing.c (print_timestamp): Use localtime rather than localtime_r since not all build environments provide the latter. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f0bb52b..84f1eee 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-04-11 Nick Clifton + + * listing.c (print_timestamp): Use localtime rather than + localtime_r since not all build environments provide the latter. + 2008-04-10 H.J. Lu * NEWS: Mention -msse-check=[none|error|warning]. diff --git a/gas/listing.c b/gas/listing.c index adda391..6932e86 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -1065,12 +1065,12 @@ static void print_timestamp (void) { const time_t now = time (NULL); - struct tm timestamp; + struct tm * timestamp; char stampstr[MAX_DATELEN]; /* Any portable way to obtain subsecond values??? */ - localtime_r (&now, ×tamp); - strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", ×tamp); + timestamp = localtime (&now); + strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", timestamp); fprintf (list_file, _("\n time stamp \t: %s\n\n"), stampstr); }