Implement POSIX support

This commit is contained in:
Diego Waxemberg
2014-01-19 02:24:04 -05:00
parent 2f18a9aea7
commit 128a5e113a
7 changed files with 108 additions and 49 deletions
+5
View File
@@ -4,6 +4,11 @@
#include <Windows.h>
#define LastSocketError() WSAGetLastError()
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <errno.h>
#define SOCKET int
#define LastSocketError() errno
#define INVALID_SOCKET -1