mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Fix Windows
This commit is contained in:
parent
e3afc11a35
commit
ffc7486b0d
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_init(ChiakiDiscovery *discovery,
|
|||
}
|
||||
|
||||
const int broadcast = 1;
|
||||
r = setsockopt(discovery->socket, SOL_SOCKET, SO_BROADCAST, &broadcast, sizeof(broadcast));
|
||||
r = setsockopt(discovery->socket, SOL_SOCKET, SO_BROADCAST, (const void *)&broadcast, sizeof(broadcast));
|
||||
if(r < 0)
|
||||
CHIAKI_LOGE(discovery->log, "Discovery failed to setsockopt SO_BROADCAST");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue