From 13a019450a9812f5a55bf2dfb173d3bee035e46f Mon Sep 17 00:00:00 2001 From: zhangshuai39 Date: Wed, 6 Aug 2025 20:48:43 +0800 Subject: [PATCH] netlib: Add an empty macro definition to the two connectivity functions The `netlib_check_ipconnectivity` and `netlib_check_ifconnectivity` functions depend on the `NETUTILS PING` configuration item. When `NETUTILS PING` is not enabled, a compilation error will occur; therefore, an empty macro definition is added. Signed-off-by: zhangshuai39 --- include/netutils/netlib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h index 2e7f7bc60..b28b880df 100644 --- a/include/netutils/netlib.h +++ b/include/netutils/netlib.h @@ -517,6 +517,9 @@ int netlib_check_ifconflict(FAR const char *ifname); int netlib_check_ipconnectivity(FAR const char *ip, int timeout, int retry); int netlib_check_ifconnectivity(FAR const char *ifname, int timeout, int retry); +#else +#define netlib_check_ipconnectivity(i, t, r) 1 +#define netlib_check_ifconnectivity(i, t, r) 1 #endif #ifdef CONFIG_MM_IOB