mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
wol: fix socket return for windows
This commit is contained in:
parent
b71a6621b0
commit
a724300d26
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue