mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
optee: avoid using gai_strerror in udp
This commit is contained in:
parent
1d466f332e
commit
419f02ef67
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,7 @@ LWS_EXTERN struct lws *
|
|||
lws_create_adopt_udp(struct lws_vhost *vhost, int port, int flags,
|
||||
const char *protocol_name, struct lws *parent_wsi)
|
||||
{
|
||||
#if !defined(LWS_PLAT_OPTEE)
|
||||
lws_sock_file_fd_type sock;
|
||||
struct addrinfo h, *r, *rp;
|
||||
struct lws *wsi = NULL;
|
||||
|
@ -396,6 +397,9 @@ bail1:
|
|||
|
||||
bail:
|
||||
return wsi;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
LWS_VISIBLE struct lws *
|
||||
|
|
Loading…
Add table
Reference in a new issue