I am making an Android game with SDL that requires access to ifaddrs.h. when I compile for mac, it works fine. When I compile for Android, it says the file was not found.
I am trying to enable it like this:
#include <ifaddrs.h>
So i
gcc -M network.cpp
to find the dependencies on the file it is included in, so I can find the absolute location of ifaddrs, which
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/ifaddrs.h
so when i
#include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/ifaddrs.h"
he finds this, but then errors when including some other ifaddrs dependency
#include <AvailabilityInternal.h>
Ok So why is the include behavior different when I try to compile for android vs for mac? (using ndkbuild or g ++ on Mac)? how can i make it work on android? What part of the knowledge / information do I lack for all this?
(OSX yosemite, 10.10 is currently running)