Closed lattice0 closed 6 years ago
Thanks for following up on this!
So if I understand correctly, ifaddrs.h exists, but the required functions are not defined, right? In that case, wouldn't it be cleaner to check if the functions exist as well? I've created a branch 'ifaddrs' that tries to do this, can you test if this works for you?
Yes, much better this way. Just tested and it works!
Great! Thanks for testing, I've merged it with the master branch.
Thanks to this answer: https://stackoverflow.com/a/49980222/6655884, If the android API is below 24, it will have ifaddrs.h but it'll now have the freeifaddrs and getifaddrs functions, so that's why the test failed for me.
I added the variable
FORCE_RTP_SUPPORT_IFADDRS_FALSE
to force it to be false after the test happens.As an example, I was able to compile using gradle by doing: