diff options
Diffstat (limited to 'net/nagios-base/patches/patch-base_logging.c')
-rw-r--r-- | net/nagios-base/patches/patch-base_logging.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/nagios-base/patches/patch-base_logging.c b/net/nagios-base/patches/patch-base_logging.c new file mode 100644 index 00000000000..faec2d0ae4f --- /dev/null +++ b/net/nagios-base/patches/patch-base_logging.c @@ -0,0 +1,24 @@ +$NetBSD$ + +64bit time_t workaround + +--- base/logging.c.orig 2014-08-12 17:00:01.000000000 +0200 ++++ base/logging.c 2016-02-07 21:57:26.000000000 +0100 +@@ -184,7 +184,7 @@ + strip(buffer); + + /* write the buffer to the log file */ +- fprintf(fp, "[%lu] %s\n", log_time, buffer); ++ fprintf(fp, "[%lu] %s\n", (u_long)log_time, buffer); + fflush(fp); + + #ifdef USE_EVENT_BROKER +@@ -495,7 +495,7 @@ + + /* write the timestamp */ + gettimeofday(¤t_time, NULL); +- fprintf(debug_file_fp, "[%lu.%06lu] [%03d.%d] [pid=%lu] ", current_time.tv_sec, current_time.tv_usec, level, verbosity, (unsigned long)getpid()); ++ fprintf(debug_file_fp, "[%lu.%06lu] [%03d.%d] [pid=%lu] ", (unsigned long)current_time.tv_sec, (unsigned long)current_time.tv_usec, level, verbosity, (unsigned long)getpid()); + + /* write the data */ + va_start(ap, fmt); |