Skip to content
Commit b059f512 authored by Christopher Friedt's avatar Christopher Friedt Committed by Martí Bolívar
Browse files

posix: netdb: provide NI_MAXSERV for reasonable app defaults



The `<netdb.h>` header typically defines `NI_MAXSERV` as a
reasonable default buffer size to use in applications that
use `getnameinfo()` to query a service name.

Most GNU and BSD systems define it by default so provide
it as a convenience so applications and 3rd-party libraries
do not encounter a compile error.

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
parent 92fdcaf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment