Use the alias socklen_t for portability

This commit is contained in:
anon 2023-08-30 20:41:52 +02:00
parent 020dc221c8
commit 119e35614b
1 changed files with 1 additions and 5 deletions

6
cgi.d
View File

@ -8844,11 +8844,7 @@ void runAddonServer(EIS)(string localListenerName, EIS eis) if(is(EIS : EventIoS
void newConnection() {
// on edge triggering, it is important that we get it all
while(true) {
version(Android) {
auto size = cast(int) addr.sizeof;
} else {
auto size = cast(uint) addr.sizeof;
}
auto size = cast(socklen_t) addr.sizeof;
auto ns = accept(sock, cast(sockaddr*) &addr, &size);
if(ns == -1) {
if(errno == EAGAIN || errno == EWOULDBLOCK) {