This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6c8b0ba9f3 libc/netdb: add dependence to net ip config
6c8b0ba9f3 is described below
commit 6c8b0ba9f3bd1825980c91e325ed30b4ecbbc636
Author: fangxinyong <[email protected]>
AuthorDate: Wed Jun 28 16:05:08 2023 +0800
libc/netdb: add dependence to net ip config
avoid to invalid enabled if no net ip config
Signed-off-by: fangxinyong <[email protected]>
---
boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig | 1 -
libs/libc/netdb/Kconfig | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig
b/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig
index 2ad5138884..d351b06c94 100644
--- a/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig
+++ b/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig
@@ -40,7 +40,6 @@ CONFIG_FILE_STREAM=y
CONFIG_INIT_ENTRYPOINT="nimble_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_LONG_LONG=y
-CONFIG_LIBC_NETDB=y
CONFIG_MM_REGIONS=2
CONFIG_NET=y
CONFIG_NETDEV_LATEINIT=y
diff --git a/libs/libc/netdb/Kconfig b/libs/libc/netdb/Kconfig
index cdd59cd601..840195d13c 100644
--- a/libs/libc/netdb/Kconfig
+++ b/libs/libc/netdb/Kconfig
@@ -5,6 +5,7 @@
config LIBC_NETDB
bool "netdb support"
+ depends on NET_IPv4 || NET_IPv6
default n
menu "NETDB Support"