From: Michael Jeanson Date: Thu, 13 Jul 2017 19:11:10 +0000 (-0400) Subject: Port: 'struct tm' member count vary across platforms X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=f833fd0411f0c9c626d9bf79e57c3b0b681a34e7 Port: 'struct tm' member count vary across platforms Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/logging/log.c b/logging/log.c index 1a3204cc..49a3061a 100644 --- a/logging/log.c +++ b/logging/log.c @@ -742,7 +742,7 @@ static char lvl_char(const int lvl) #define TCACHE_FLUID (0x40000000 | 0x80000000) static unsigned g_tcache_mode = TCACHE_STALE; static struct timeval g_tcache_tv = {0, 0}; -static struct tm g_tcache_tm = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; +static struct tm g_tcache_tm = {0}; static INLINE int tcache_get(const struct timeval *const tv, struct tm *const tm) {