mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
libc/netdb: Let LIBC_GAISTRERROR/NETDB_BUFSIZE/NETDB_MAX_IPADDR depends on LIBC_NETDB
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
e46688c1ee
commit
bdcd232c98
@@ -11,6 +11,7 @@ menu "NETDB Support"
|
|||||||
|
|
||||||
config LIBC_GAISTRERROR
|
config LIBC_GAISTRERROR
|
||||||
bool "Enable gai_strerror"
|
bool "Enable gai_strerror"
|
||||||
|
depends on LIBC_NETDB
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
The gai_strerror() function shall return a text string describing an error
|
The gai_strerror() function shall return a text string describing an error
|
||||||
@@ -20,10 +21,12 @@ config LIBC_GAISTRERROR
|
|||||||
|
|
||||||
config NETDB_BUFSIZE
|
config NETDB_BUFSIZE
|
||||||
int "gethostbyname/gethostbyaddr buffer size"
|
int "gethostbyname/gethostbyaddr buffer size"
|
||||||
|
depends on LIBC_NETDB
|
||||||
default 256
|
default 256
|
||||||
|
|
||||||
config NETDB_MAX_IPADDR
|
config NETDB_MAX_IPADDR
|
||||||
int "Max number of IP addresses per host"
|
int "Max number of IP addresses per host"
|
||||||
|
depends on LIBC_NETDB
|
||||||
default 2 if NET_IPv4 && NET_IPv6
|
default 2 if NET_IPv4 && NET_IPv6
|
||||||
default 1
|
default 1
|
||||||
---help---
|
---help---
|
||||||
|
|||||||
Reference in New Issue
Block a user