Commit 87dc0492 authored by Jérome Perrin's avatar Jérome Perrin

fix compilation problems

parent 694539db
...@@ -74,7 +74,7 @@ public: ...@@ -74,7 +74,7 @@ public:
void addInterval(const Interval<T> & interval) void addInterval(const Interval<T> & interval)
{ {
insert(interval); this->insert(interval);
typename IntervalSetType::const_iterator it = this->begin(); typename IntervalSetType::const_iterator it = this->begin();
m_start = (*it).start(); m_start = (*it).start();
......
...@@ -164,7 +164,7 @@ bool HttpClient::connect () ...@@ -164,7 +164,7 @@ bool HttpClient::connect ()
if (res < 0) if (res < 0)
{ {
::closesocket(fd); // ::closesocket(fd);
lastError = CANNOT_CONNECT; lastError = CANNOT_CONNECT;
setLastErrorMessage(errno); setLastErrorMessage(errno);
return false; return false;
...@@ -176,7 +176,7 @@ bool HttpClient::connect () ...@@ -176,7 +176,7 @@ bool HttpClient::connect ()
if (res != 0 ) if (res != 0 )
{ {
::closesocket(fd); //::closesocket(fd);
lastError = NO_DELAY_FAILED; lastError = NO_DELAY_FAILED;
setLastErrorMessage(errno); setLastErrorMessage(errno);
return false; return false;
...@@ -322,7 +322,7 @@ bool HttpClient::send (const string& message) ...@@ -322,7 +322,7 @@ bool HttpClient::send (const string& message)
} }
else else
{ {
::closesocket(fd); //::closesocket(fd);
lastError = WRITE_FAILED; lastError = WRITE_FAILED;
setLastErrorMessage(errno); setLastErrorMessage(errno);
connected = false; connected = false;
...@@ -400,7 +400,7 @@ bool HttpClient::receive () ...@@ -400,7 +400,7 @@ bool HttpClient::receive ()
} }
else else
{ {
::closesocket(fd); //::closesocket(fd);
lastError = READ_FAILED; lastError = READ_FAILED;
setLastErrorMessage(errno); setLastErrorMessage(errno);
connected = false; connected = false;
...@@ -410,7 +410,7 @@ bool HttpClient::receive () ...@@ -410,7 +410,7 @@ bool HttpClient::receive ()
} }
else if (nr == 0) else if (nr == 0)
{ {
::closesocket(fd); //::closesocket(fd);
lastError = READ_FAILED; lastError = READ_FAILED;
setLastErrorMessage(errno); setLastErrorMessage(errno);
connected = false; connected = false;
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <iostream> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
using namespace std; using namespace std;
using namespace triagens; using namespace triagens;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment