mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
net: use native listen on POSIX
This commit is contained in:
@@ -1744,16 +1744,11 @@ int KYTY_SYSV_ABI Listen(int s, int backlog) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
if (::listen(socket, backlog) == SOCKET_ERROR) {
|
||||
if (::listen(socket, backlog) != 0) {
|
||||
return SetHostSocketError();
|
||||
}
|
||||
|
||||
return 0;
|
||||
#else
|
||||
*Posix::GetErrorAddr() = Posix::POSIX_ENOSYS;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
int KYTY_SYSV_ABI Accept(int s, void* addr, uint32_t* addrlen) {
|
||||
|
||||
Reference in New Issue
Block a user