From 1c6b0b3f71cdcf79d00f2c509f89a778eb5108e7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 11 Apr 2008 09:06:02 +0000 Subject: * listing.c (print_timestamp): Use localtime rather than localtime_r since not all build environments provide the latter. --- gas/listing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gas/listing.c') diff --git a/gas/listing.c b/gas/listing.c index adda391181..6932e8679b 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); } -- cgit v1.2.1