Skip to content

Update main.c so wake-on-arp can compile on clang 17#20

Merged
nikp123 merged 1 commit intonikp123:masterfrom
tgorgdotcom:patch-1
Oct 14, 2023
Merged

Update main.c so wake-on-arp can compile on clang 17#20
nikp123 merged 1 commit intonikp123:masterfrom
tgorgdotcom:patch-1

Conversation

@tgorgdotcom
Copy link
Copy Markdown
Contributor

This fixed compiling on clang 17 on termux (Android arm)

This fixed compiling on clang 17 on termux (Android arm)
@tgorgdotcom
Copy link
Copy Markdown
Contributor Author

I also just found that you'll need to do the following to make it work in Termux as well (but I don't think it needs code changes):

Before you compile:

  • create a etc folder in /data/data/com.termux/files
  • export the CONFIG_PREFIX environment value to /data/data/com.termux/files/etc

I'm running into a "socket error: Bad file descriptor" when trying to run wake-on-arp as normal, but I'm looking into it

@nikp123
Copy link
Copy Markdown
Owner

nikp123 commented Oct 13, 2023

I'm running into a "socket error: Bad file descriptor" when trying to run wake-on-arp as normal, but I'm looking into it

I think you might need root permissions due to the whole "listening to the entire network on your device". Try with those and report back

PS: I'll look into the change in a sec, seems fine but better make sure that it works, thanks.

@nikp123 nikp123 merged commit 4fb8cd9 into nikp123:master Oct 14, 2023
@tgorgdotcom
Copy link
Copy Markdown
Contributor Author

Yup, you were right. I switched to a rooted phone that had termux and it worked! Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants