X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=logging%2Flog.c;h=49a3061a11c95084b3376498a52f5c8f4f3b7753;hb=f833fd0411f0c9c626d9bf79e57c3b0b681a34e7;hp=4561012984e75eb6548a78573e4d597683c1a305;hpb=c0c0c8b462770508bc3446053e84365e808e6303;p=babeltrace.git diff --git a/logging/log.c b/logging/log.c index 45610129..49a3061a 100644 --- a/logging/log.c +++ b/logging/log.c @@ -310,6 +310,8 @@ extern unsigned long pthread_getsequence_np(pthread_t *); #include #if defined(__linux__) #include + #elif (defined(__sun__) || defined(__CYGWIN__)) + /* Solaris and Cygwin have no sys/syslimits.h */ #else #include #endif @@ -740,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) {