mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 14:21:30 +00:00
Implement POSIX support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user