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 7faebbd42 libuv: fix compile warning
7faebbd42 is described below
commit 7faebbd4252ee1a6419ee81739a84fbb2c7c0f18
Author: fangxinyong <[email protected]>
AuthorDate: Thu Jun 29 09:58:37 2023 +0800
libuv: fix compile warning
CC: pthread/pthread_mutexinconsistent.c
libuv/src/unix/getaddrinfo.c:103:9: warning: implicit declaration of function
‘getaddrinfo’; did you mean ‘uv_getaddrinfo’? [-Wimplicit-function-declaration]
103 | err = getaddrinfo(req->hostname, req->service, req->hints,
&req->addrinfo);
| ^~~~~~~~~~~
| uv_getaddrinfo
libuv/src/unix/getaddrinfo.c: In function ‘uv_freeaddrinfo’:
libuv/src/unix/getaddrinfo.c:222:5: warning: implicit declaration of
function ‘freeaddrinfo’; did you mean ‘uv_freeaddrinfo’?
[-Wimplicit-function-declaration]
222 | freeaddrinfo(ai);
| ^~~~~~~~~~~~
| uv_freeaddrinfo
CC: misc/lib_crc16ccitt.c libuv/src/unix/getnameinfo.c: In function
‘uv__getnameinfo_work’:
libuv/src/unix/getnameinfo.c:45:9: warning: implicit declaration of
function ‘getnameinfo’; did you mean ‘uv_getnameinfo’?
[-Wimplicit-function-declaration]
45 | err = getnameinfo((struct sockaddr*) &req->storage,
| ^~~~~~~~~~~
| uv_getnameinfo
Signed-off-by: fangxinyong <[email protected]>
---
system/libuv/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/system/libuv/Makefile b/system/libuv/Makefile
index 534908859..928059ca2 100644
--- a/system/libuv/Makefile
+++ b/system/libuv/Makefile
@@ -102,9 +102,12 @@ ifneq ($(CONFIG_LIBC_DLFCN),)
CSRCS += dl.c
endif
-ifneq ($(CONFIG_NET),)
+ifneq ($(CONFIG_LIBC_NETDB),)
CSRCS += getaddrinfo.c
CSRCS += getnameinfo.c
+endif
+
+ifneq ($(CONFIG_NET),)
CSRCS += inet.c
endif