Re: compiling gloox 1.0-beta2 with MSVC2005
From: Jakob Schröter <js@xxxxxxxxxx>
Date: Fri, 7 Mar 2008 01:31:55 +0100 (CET)
On Thursday March 6 2008, Alban Taraire wrote:
> Hi again,
>
> this time I'm trying to compile gloox on Windows, using MSVC2005. I get the
> following errors :

Does the attached patchlet change anything?

cheers,
Jakob
Index: connectionbosh.cpp
===================================================================
--- connectionbosh.cpp  (revision 3610)
+++ connectionbosh.cpp  (working copy)
@@ -22,6 +22,9 @@
 #include <sstream>
 
 #include <cstdlib>
+#include <ctime>
+#include <cctype>
+#include <algorithm>
 
 namespace gloox
 {
@@ -33,7 +36,7 @@
       m_logInstance( logInstance ), m_parser( this ), m_boshHost( boshHost ), 
m_path( "/http-bind/" ),
       m_rid( 0 ), m_initialStreamSent( false ), m_openRequests( 0 ),
       m_maxOpenRequests( 2 ), m_wait( 30 ), m_hold( 2 ), m_streamRestart( 
false ),
-      m_lastRequestTime( time( 0 ) ), m_minTimePerRequest( 0 ), 
m_bufferContentLength( 0 ),
+      m_lastRequestTime( std::time( 0 ) ), m_minTimePerRequest( 0 ), 
m_bufferContentLength( 0 ),
       m_connMode( ModePipelining )
   {
     initInstance( connection, xmppServer, xmppPort );
@@ -46,7 +49,7 @@
       m_logInstance( logInstance ), m_parser( this ), m_boshHost( boshHost ), 
m_path( "/http-bind/" ),
       m_rid( 0 ),  m_initialStreamSent( false ), m_openRequests( 0 ),
       m_maxOpenRequests( 2 ), m_wait( 30 ), m_hold( 2 ), m_streamRestart( 
false ),
-      m_lastRequestTime( time( 0 ) ), m_minTimePerRequest( 0 ), 
m_bufferContentLength( 0 ),
+      m_lastRequestTime( std::time( 0 ) ), m_minTimePerRequest( 0 ), 
m_bufferContentLength( 0 ),
       m_connMode( ModePipelining )
   {
     initInstance( connection, xmppServer, xmppPort );

Attachment: signature.asc
Description: This is a digitally signed message part.