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

fix compilation problems

parent 694539db
......@@ -74,7 +74,7 @@ public:
void addInterval(const Interval<T> & interval)
{
insert(interval);
this->insert(interval);
typename IntervalSetType::const_iterator it = this->begin();
m_start = (*it).start();
......
......@@ -164,7 +164,7 @@ bool HttpClient::connect ()
if (res < 0)
{
::closesocket(fd);
// ::closesocket(fd);
lastError = CANNOT_CONNECT;
setLastErrorMessage(errno);
return false;
......@@ -176,7 +176,7 @@ bool HttpClient::connect ()
if (res != 0 )
{
::closesocket(fd);
//::closesocket(fd);
lastError = NO_DELAY_FAILED;
setLastErrorMessage(errno);
return false;
......@@ -322,7 +322,7 @@ bool HttpClient::send (const string& message)
}
else
{
::closesocket(fd);
//::closesocket(fd);
lastError = WRITE_FAILED;
setLastErrorMessage(errno);
connected = false;
......@@ -400,7 +400,7 @@ bool HttpClient::receive ()
}
else
{
::closesocket(fd);
//::closesocket(fd);
lastError = READ_FAILED;
setLastErrorMessage(errno);
connected = false;
......@@ -410,7 +410,7 @@ bool HttpClient::receive ()
}
else if (nr == 0)
{
::closesocket(fd);
//::closesocket(fd);
lastError = READ_FAILED;
setLastErrorMessage(errno);
connected = false;
......
......@@ -45,6 +45,7 @@
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
using namespace std;
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