diff options
Diffstat (limited to 'lib/localtime-buffer.c')
| -rw-r--r-- | lib/localtime-buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/localtime-buffer.c b/lib/localtime-buffer.c index df11f4321db..b65ea45af20 100644 --- a/lib/localtime-buffer.c +++ b/lib/localtime-buffer.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Provide access to the last buffer returned by localtime() or gmtime(). | 1 | /* Provide access to the last buffer returned by localtime() or gmtime(). |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2003, 2005-2007, 2009-2018 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| @@ -34,6 +34,7 @@ struct tm *localtime_buffer_addr = &tm_zero_buffer; | |||
| 34 | 34 | ||
| 35 | struct tm * | 35 | struct tm * |
| 36 | rpl_localtime (time_t const *timep) | 36 | rpl_localtime (time_t const *timep) |
| 37 | #undef localtime | ||
| 37 | { | 38 | { |
| 38 | struct tm *tm = localtime (timep); | 39 | struct tm *tm = localtime (timep); |
| 39 | 40 | ||
| @@ -46,6 +47,7 @@ rpl_localtime (time_t const *timep) | |||
| 46 | /* Same as above, since gmtime and localtime use the same buffer. */ | 47 | /* Same as above, since gmtime and localtime use the same buffer. */ |
| 47 | struct tm * | 48 | struct tm * |
| 48 | rpl_gmtime (time_t const *timep) | 49 | rpl_gmtime (time_t const *timep) |
| 50 | #undef gmtime | ||
| 49 | { | 51 | { |
| 50 | struct tm *tm = gmtime (timep); | 52 | struct tm *tm = gmtime (timep); |
| 51 | 53 | ||