From 6d4e9fde26569070b1f48151b9eeffa83b8db770 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Wed, 21 Feb 2018 11:28:28 -0500
Subject: [PATCH] SystemInformation: Android has no getifaddrs prior to API 24

---
 SystemInformation.cxx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 7503469..2b9d7b1 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -121,7 +121,11 @@ typedef int siginfo_t;
 #if defined(KWSYS_SYS_HAS_IFADDRS_H)
 #include <ifaddrs.h>
 #include <net/if.h>
-#if !defined(__LSB_VERSION__) /* LSB has no getifaddrs */
+#if defined(__LSB_VERSION__)
+/* LSB has no getifaddrs */
+#elif defined(__ANDROID_API__) && __ANDROID_API__ < 24
+/* Android has no getifaddrs prior to API 24.  */
+#else
 #define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
 #endif
 #endif
-- 
GitLab