mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-16 13:22:41 +00:00
struct pollfd
This commit is contained in:
@@ -163,7 +163,7 @@ Errno TranslateNativeError(int e, CallType call_type = CallType::Other) {
|
||||
#else // ^^^ Windows vvv POSIX
|
||||
|
||||
using SOCKET = int;
|
||||
using WSAPOLLFD = pollfd;
|
||||
using WSAPOLLFD = struct pollfd;
|
||||
using ULONG = u64;
|
||||
|
||||
constexpr SOCKET SOCKET_ERROR = -1;
|
||||
@@ -232,11 +232,11 @@ sockaddr TranslateFromSockAddrIn(Network::SockAddrIn input) {
|
||||
}
|
||||
|
||||
int WSAPoll(WSAPOLLFD* fds, ULONG nfds, int timeout) {
|
||||
return poll(fds, nfds_t(nfds), timeout);
|
||||
return ::poll(fds, nfds_t(nfds), timeout);
|
||||
}
|
||||
|
||||
int closesocket(SOCKET fd) {
|
||||
return close(fd);
|
||||
return ::close(fd);
|
||||
}
|
||||
|
||||
linger MakeLinger(bool enable, u32 linger_value) {
|
||||
|
||||
Reference in New Issue
Block a user