Skip to content
代码片段 群组 项目
提交 a724300d 编辑于 作者: Vladislavs Burakovs's avatar Vladislavs Burakovs 提交者: Andy Green
浏览文件

wol: fix socket return for windows

上级 b71a6621
No related branches found
No related tags found
无相关合并请求
......@@ -31,7 +31,7 @@ lws_wol(struct lws_context *ctx, const char *ip_or_NULL, uint8_t *mac_6_bytes)
uint8_t pkt[17 * ETHER_ADDR_LEN];
struct sockaddr_in addr;
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
fd = (int)(intptr_t)socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (fd < 0) {
lwsl_cx_err(ctx, "failed to open UDP, errno %d\n", errno);
goto bail;
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册