$OpenBSD: patch-src_log4c_layout_type_dated_r_c,v 1.1.1.1 2012/05/11 11:43:49 ajacoutot Exp $

passing argument 1 of 'gmtime_r' from incompatible pointer type

--- src/log4c/layout_type_dated_r.c.orig	Fri May 11 12:49:12 2012
+++ src/log4c/layout_type_dated_r.c	Fri May 11 12:50:22 2012
@@ -27,7 +27,9 @@ static const char* dated_r_format(
 #ifndef __HP_cc
 #warning gmtime() routine should be defined in sd_xplatform
 #endif
-    gmtime_r(&a_event->evt_timestamp.tv_sec, &tm);
+    time_t t;
+    t = (time_t)a_event->evt_timestamp.tv_sec;
+    gmtime_r(&t, &tm);
 #else
     /* xxx Need a CreateMutex/ReleaseMutex or something here
      */
