summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-04-14 23:37:11 -0700
committerMichael Pavone <pavone@retrodev.com>2019-04-14 23:37:11 -0700
commit05af6e2720d03b538e64a73a84af1f4c4f8ce762 (patch)
tree6b7d1d16ce7fa5ae14b40069fb6b6dc6bc9c374d /net.c
parentf56f65652e292022c1a0fadb3807a7792468f267 (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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net.c b/net.c
index eefc9cd..f362ba6 100644
--- a/net.c
+++ b/net.c
@@ -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