mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
net: use native listen on POSIX
This commit is contained in:
1 parent
1eb13dfa5e
commit
cdec5c515b
1 file changed
+1
-6
@@ -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