diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-04-14 23:37:11 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-04-14 23:37:11 -0700 |
commit | 05af6e2720d03b538e64a73a84af1f4c4f8ce762 (patch) | |
tree | 6b7d1d16ce7fa5ae14b40069fb6b6dc6bc9c374d /net.c | |
parent | f56f65652e292022c1a0fadb3807a7792468f267 (diff) |
Get Android build working again and update for SDL 2.0.7 (last version to support older versions of Android)
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,10 @@ static void format_address(uint8_t *dst, struct sockaddr_in *addr) uint8_t get_host_address(iface_info *out) { +#ifdef __ANDROID__ + //TODO: write an implementation for Android + return 0; +#else struct ifaddrs *entries, *current, *localhost; if (getifaddrs(&entries)) { return 0; @@ -46,4 +50,5 @@ uint8_t get_host_address(iface_info *out) } freeifaddrs(entries); return ret; +#endif }
\ No newline at end of file |