summaryrefslogtreecommitdiffstats
path: root/net/kdenetwork4/files/patch-kopete__protocols__jabber__googletalk__libjingle__talk__base__httpcommon.cc
blob: 5aebcd5d4a19d8a5939dcb0af03ce28106b57ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- kopete/protocols/jabber/googletalk/libjingle/talk/base/httpcommon.cc.orig	2008-09-06 23:18:41.000000000 -0300
+++ kopete/protocols/jabber/googletalk/libjingle/talk/base/httpcommon.cc	2008-09-06 23:31:38.000000000 -0300
@@ -25,6 +25,10 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
 #include <time.h>
 
 #ifdef WIN32
@@ -369,7 +373,7 @@
     }
     gmt = non_gmt + kTimeZoneOffsets[zindex] * 60 * 60;
   }
-#ifdef OSX
+#if defined(OSX) || defined(__FreeBSD__)
   tm *tm_for_timezone = localtime((time_t *)&gmt);
   *seconds = gmt + tm_for_timezone->tm_gmtoff;
 #else
OpenPOWER on IntegriCloud