Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Oct 14, 2023

Conversation

tgorgdotcom
Copy link
Contributor

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

This fixed compiling on clang 17 on termux (Android arm)
@tgorgdotcom
Copy link
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
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
1 check passed
@tgorgdotcom
Copy link
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.

None yet

2 participants