mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
c61fb846d7
commit
13a019450a
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue