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-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 13a019450 netlib: Add an empty macro definition to the two 
connectivity functions
13a019450 is described below

commit 13a019450a9812f5a55bf2dfb173d3bee035e46f
Author: zhangshuai39 <[email protected]>
AuthorDate: Wed Aug 6 20:48:43 2025 +0800

    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 <[email protected]>
---
 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

Reply via email to