>From caf5855848ac121fcba90b978b2200a74bfde2c8 Mon Sep 17 00:00:00 2001 From: Akash Rawal Date: Fri, 7 Jul 2017 09:50:32 +0530 Subject: [PATCH] localtime-buffer: Prevent rpl_gmtime and rpl_localtime from calling themselves * lib/localtime-buffer.c: Undefine macros gmtime and localtime --- lib/localtime-buffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/localtime-buffer.c b/lib/localtime-buffer.c index 7620b30e7..0486ef7b3 100644 --- a/lib/localtime-buffer.c +++ b/lib/localtime-buffer.c @@ -27,6 +27,9 @@ static struct tm tm_zero_buffer; struct tm *localtime_buffer_addr = &tm_zero_buffer; +#undef localtime +#undef gmtime + /* This is a wrapper for localtime. On the first call, record the address of the static buffer that -- 2.13.2