You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/09/22 15:41:14 UTC

[incubator-nuttx] 01/02: libc/netdb: Let LIBC_GAISTRERROR/NETDB_BUFSIZE/NETDB_MAX_IPADDR depends on LIBC_NETDB

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit bdcd232c986dc853675c746ce541996ceb65ed60
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu Sep 22 13:01:45 2022 +0800

    libc/netdb: Let LIBC_GAISTRERROR/NETDB_BUFSIZE/NETDB_MAX_IPADDR depends on LIBC_NETDB
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 libs/libc/netdb/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/libc/netdb/Kconfig b/libs/libc/netdb/Kconfig
index 4e59f85d72..296b0471a3 100644
--- a/libs/libc/netdb/Kconfig
+++ b/libs/libc/netdb/Kconfig
@@ -11,6 +11,7 @@ menu "NETDB Support"
 
 config LIBC_GAISTRERROR
 	bool "Enable gai_strerror"
+	depends on LIBC_NETDB
 	default n
 	---help---
 		The gai_strerror() function shall return a text string describing an error
@@ -20,10 +21,12 @@ config LIBC_GAISTRERROR
 
 config NETDB_BUFSIZE
 	int "gethostbyname/gethostbyaddr buffer size"
+	depends on LIBC_NETDB
 	default 256
 
 config NETDB_MAX_IPADDR
 	int "Max number of IP addresses per host"
+	depends on LIBC_NETDB
 	default 2 if NET_IPv4 && NET_IPv6
 	default 1
 	---help---