1 Only enable getifaddrs support when available
3 On uClibc, the ifaddrs.h support is optional. While the default
4 Buildroot uClibc configuration has it enabled, some external
5 toolchains may not. Therefore this patch detects that and adjusts
6 softether usage of ifaddrs accordingly.
8 Based on an initial patch from Bernd Kuhls.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 Index: b/src/Mayaqua/Mayaqua.h
13 ===================================================================
14 --- a/src/Mayaqua/Mayaqua.h
15 +++ b/src/Mayaqua/Mayaqua.h
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
26 #endif // UNIX_SOLARIS