aboutsummaryrefslogtreecommitdiff
path: root/net-im/jabber/files/patch-jabberd-lib-jutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/jabber/files/patch-jabberd-lib-jutil.cc')
-rw-r--r--net-im/jabber/files/patch-jabberd-lib-jutil.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-im/jabber/files/patch-jabberd-lib-jutil.cc b/net-im/jabber/files/patch-jabberd-lib-jutil.cc
new file mode 100644
index 000000000000..b000ca03bb63
--- /dev/null
+++ b/net-im/jabber/files/patch-jabberd-lib-jutil.cc
@@ -0,0 +1,11 @@
+--- jabberd/lib/jutil.cc.orig Tue Jul 17 16:03:22 2007
++++ jabberd/lib/jutil.cc Tue Jul 17 16:04:28 2007
+@@ -261,7 +261,7 @@
+ struct tm *new_time = NULL;
+
+ gettimeofday(&tv, &tz);
+- new_time = gmtime(&(tv.tv_sec));
++ new_time = gmtime((time_t *)&(tv.tv_sec));
+ snprintf(buffer, sizeof(char[25]), "%d-%02d-%02dT%02d:%02d:%02d.%03dZ", 1900+new_time->tm_year,
+ new_time->tm_mon+1, new_time->tm_mday, new_time->tm_hour,
+ new_time->tm_min, new_time->tm_sec, tv.tv_usec/1000);