mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
esp32: use strerror instead of gai_strerror
This commit is contained in:
parent
9e75e7b780
commit
310bd7d5d4
1 changed files with 5 additions and 2 deletions
|
@ -398,8 +398,11 @@ lws_create_adopt_udp(struct lws_vhost *vhost, int port, int flags,
|
|||
lws_snprintf(buf, sizeof(buf), "%u", port);
|
||||
n = getaddrinfo(NULL, buf, &h, &r);
|
||||
if (n) {
|
||||
lwsl_info("%s: getaddrinfo error: %s\n", __func__,
|
||||
gai_strerror(n));
|
||||
#ifndef LWS_WITH_ESP32
|
||||
lwsl_info("%s: getaddrinfo error: %s\n", __func__, gai_strerror(n));
|
||||
#else
|
||||
lwsl_info("%s: getaddrinfo error: %s\n", __func__, strerror(n));
|
||||
#endif
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue