Changeset View
Changeset View
Standalone View
Standalone View
src/compat.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
#include <sys/select.h> | #include <sys/select.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#endif | #endif | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
typedef unsigned int SOCKET; | typedef unsigned int SOCKET; | ||||
#include <errno.h> | #include <cerrno> | ||||
#define WSAGetLastError() errno | #define WSAGetLastError() errno | ||||
#define WSAEINVAL EINVAL | #define WSAEINVAL EINVAL | ||||
#define WSAEALREADY EALREADY | #define WSAEALREADY EALREADY | ||||
#define WSAEWOULDBLOCK EWOULDBLOCK | #define WSAEWOULDBLOCK EWOULDBLOCK | ||||
#define WSAEMSGSIZE EMSGSIZE | #define WSAEMSGSIZE EMSGSIZE | ||||
#define WSAEINTR EINTR | #define WSAEINTR EINTR | ||||
#define WSAEINPROGRESS EINPROGRESS | #define WSAEINPROGRESS EINPROGRESS | ||||
#define WSAEADDRINUSE EADDRINUSE | #define WSAEADDRINUSE EADDRINUSE | ||||
Show All 33 Lines |