Windows compatability fixes
This commit is contained in:
parent
1594d4babf
commit
c0b84b55ee
@ -15,6 +15,7 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
#DEFINE SOL_TCP SOL_SOCKET
|
||||||
#else
|
#else
|
||||||
#define closesocket(x) close(x)
|
#define closesocket(x) close(x)
|
||||||
#define INVALID_SOCKET 0
|
#define INVALID_SOCKET 0
|
||||||
@ -23,6 +24,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#include <netinet/tcp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
// Created by fred on 06/12/16.
|
// Created by fred on 06/12/16.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <netinet/tcp.h>
|
#include "frnetlib/NetworkEncoding.h"
|
||||||
#include "frnetlib/Socket.h"
|
#include "frnetlib/Socket.h"
|
||||||
|
|
||||||
namespace fr
|
namespace fr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user