![Thomas Petazzoni](/assets/img/avatar_default.png)
Patches downloaded from Github are not stable, so bring them in the tree. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 lines
989 B
Diff
28 lines
989 B
Diff
Only enable getifaddrs support when available
|
|
|
|
On uClibc, the ifaddrs.h support is optional. While the default
|
|
Buildroot uClibc configuration has it enabled, some external
|
|
toolchains may not. Therefore this patch detects that and adjusts
|
|
softether usage of ifaddrs accordingly.
|
|
|
|
Based on an initial patch from Bernd Kuhls.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Index: b/src/Mayaqua/Mayaqua.h
|
|
===================================================================
|
|
--- a/src/Mayaqua/Mayaqua.h
|
|
+++ b/src/Mayaqua/Mayaqua.h
|
|
@@ -235,9 +235,11 @@
|
|
#ifdef OS_UNIX
|
|
#ifndef UNIX_SOLARIS
|
|
#ifndef CPU_SH4
|
|
+#if !defined(__UCLIBC__) || defined(__UCLIBC_SUPPORT_AI_ADDRCONFIG__)
|
|
// Getifaddrs system call is supported on UNIX other than Solaris.
|
|
// However, it is not supported also by the Linux on SH4 CPU
|
|
#define MAYAQUA_SUPPORTS_GETIFADDRS
|
|
+#endif // !UCLIBC || UCLIBC_SUPPORT_AI_ADDRCONFIG
|
|
#endif // CPU_SH4
|
|
#endif // UNIX_SOLARIS
|
|
#endif // OS_UNIX
|