mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibC: Stub out the rest of the getnameinfo flags
These are required for the compilation of some ports.
This commit is contained in:
committed by
Andreas Kling
parent
8074157c10
commit
d68242ba2f
Notes:
sideshowbarker
2024-07-17 23:10:12 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/d68242ba2fb Pull-request: https://github.com/SerenityOS/serenity/pull/11152 Reviewed-by: https://github.com/awesomekling
@@ -788,8 +788,8 @@ int getnameinfo(const struct sockaddr* __restrict addr, socklen_t addrlen, char*
|
||||
const sockaddr_in* sin = reinterpret_cast<const sockaddr_in*>(addr);
|
||||
|
||||
if (host && hostlen > 0) {
|
||||
if (flags & NI_NAMEREQD)
|
||||
dbgln("getnameinfo flag NI_NAMEREQD not implemented");
|
||||
if (flags != 0)
|
||||
dbgln("getnameinfo flags are not implemented: {:#x}", flags);
|
||||
|
||||
if (!inet_ntop(AF_INET, &sin->sin_addr, host, hostlen)) {
|
||||
if (errno == ENOSPC)
|
||||
|
||||
Reference in New Issue
Block a user