1Only enable getifaddrs support when available 2 3On uClibc, the ifaddrs.h support is optional. While the default 4Buildroot uClibc configuration has it enabled, some external 5toolchains may not. Therefore this patch detects that and adjusts 6softether usage of ifaddrs accordingly. 7 8Based on an initial patch from Bernd Kuhls. 9 10Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11 12Index: b/src/Mayaqua/Mayaqua.h 13=================================================================== 14--- a/src/Mayaqua/Mayaqua.h 15+++ b/src/Mayaqua/Mayaqua.h 16@@ -235,9 +235,11 @@ 17 #ifdef OS_UNIX 18 #ifndef UNIX_SOLARIS 19 #ifndef CPU_SH4 20+#if !defined(__UCLIBC__) || defined(__UCLIBC_SUPPORT_AI_ADDRCONFIG__) 21 // Getifaddrs system call is supported on UNIX other than Solaris. 22 // However, it is not supported also by the Linux on SH4 CPU 23 #define MAYAQUA_SUPPORTS_GETIFADDRS 24+#endif // !UCLIBC || UCLIBC_SUPPORT_AI_ADDRCONFIG 25 #endif // CPU_SH4 26 #endif // UNIX_SOLARIS 27 #endif // OS_UNIX 28