compilation fixes on freebsd (sorry)

pull/115/head
bert hubert 2020-04-28 14:36:40 +02:00
parent e481d4a284
commit c3737713e1
2 changed files with 4 additions and 2 deletions

View File

@ -176,8 +176,9 @@ void recvSession2(Socket&& uns, ComboAddress client)
denum = htonl(denum);
// cerr<<"Received message "<<denum<< " "<<nmm.localutcseconds()<<" " << nmm.localutcnanoseconds()/1000000000.0<<endl;
writeToDisk(nmm.localutcseconds(), nmm.sourceid(), out);
SSetsockopt(uns, IPPROTO_TCP, TCP_CORK, 1 );
#ifdef __linux__
SSetsockopt(uns, IPPROTO_TCP, TCP_CORK, 1 );
#endif
SWrite(uns, num);
}

View File

@ -2,6 +2,7 @@
#include <zstd.h>
#include <iostream>
#include <string.h>
#include <vector>
#include "navmon.hh"
using std::cout;