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 <zhangshuai39@xiaomi.com>
This commit is contained in:
zhangshuai39 2025-08-06 20:48:43 +08:00 committed by Xiang Xiao
parent c61fb846d7
commit 13a019450a

View file

@ -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