From 05af6e2720d03b538e64a73a84af1f4c4f8ce762 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 14 Apr 2019 23:37:11 -0700 Subject: Get Android build working again and update for SDL 2.0.7 (last version to support older versions of Android) --- net.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net.c') 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 -- cgit v1.2.3