1
0
Fork 0
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:
Vladislavs Burakovs 2024-03-01 08:06:45 +00:00 committed by Andy Green
parent b71a6621b0
commit a724300d26

View file

@ -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;