mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
LibC: Stub out the rest of the getnameinfo flags
These are required for the compilation of some ports.
This commit is contained in:
parent
8074157c10
commit
d68242ba2f
Notes:
sideshowbarker
2024-07-17 23:10:12 +09:00
Author: https://github.com/IdanHo
Commit: d68242ba2f
Pull-request: https://github.com/SerenityOS/serenity/pull/11152
Reviewed-by: https://github.com/awesomekling
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue