1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Merge pull request #1084 from ffontaine/master

Only enable getifaddrs support when available
This commit is contained in:
Ilya Shipitsin 2020-04-03 17:45:19 +05:00 committed by GitHub
commit c6f186bd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,9 +128,11 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow)
#ifdef OS_UNIX #ifdef OS_UNIX
#ifndef UNIX_SOLARIS #ifndef UNIX_SOLARIS
#ifndef CPU_SH4 #ifndef CPU_SH4
#if !defined(__UCLIBC__) || defined(__UCLIBC_SUPPORT_AI_ADDRCONFIG__)
// Getifaddrs system call is supported on UNIX other than Solaris. // Getifaddrs system call is supported on UNIX other than Solaris.
// However, it is not supported also by the Linux on SH4 CPU // However, it is not supported also by the Linux on SH4 CPU
#define MAYAQUA_SUPPORTS_GETIFADDRS #define MAYAQUA_SUPPORTS_GETIFADDRS
#endif // !UCLIBC || UCLIBC_SUPPORT_AI_ADDRCONFIG
#endif // CPU_SH4 #endif // CPU_SH4
#endif // UNIX_SOLARIS #endif // UNIX_SOLARIS
#endif // OS_UNIX #endif // OS_UNIX