Windows compatibility fixes

This commit is contained in:
Cloaked9000 2017-01-06 15:21:17 +00:00
parent 1594d4babf
commit e60d961fb0
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#DEFINE SOL_TCP SOL_SOCKET
#else
#define closesocket(x) close(x)
#define INVALID_SOCKET 0
@ -23,6 +24,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#endif

View File

@ -2,7 +2,7 @@
// Created by fred on 06/12/16.
//
#include <netinet/tcp.h>
#include "frnetlib/NetworkEncoding.h"
#include "frnetlib/Socket.h"
namespace fr