Code

Include <sys/sockio.h> (if available) to get SIOCGIFADDR defined on