Skip to content

Commit

Permalink
Update main.c so wake-on-arp can compile on clang 17
Browse files Browse the repository at this point in the history
This fixed compiling on clang 17 on termux (Android arm)
  • Loading branch information
tgorgdotcom authored Oct 12, 2023
1 parent 36e1022 commit 2b2e235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ int parse_args() {

// calculate proper net mask
unsigned int subnet_bigendian = 0xffffffff << (32-mask_value);
m.subnet = __bswap_32(subnet_bigendian);
m.subnet = __builtin_bswap32(subnet_bigendian);
}

return 0;
Expand Down

0 comments on commit 2b2e235

Please sign in to comment.