mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #627 from thepyper/master
Merge PR #627: musl support
This commit is contained in:
commit
c398459ebf
@ -44,6 +44,9 @@ if(UNIX)
|
|||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
add_definitions(-DUNIX_LINUX)
|
add_definitions(-DUNIX_LINUX)
|
||||||
|
if("$ENV{USE_MUSL}" STREQUAL "YES")
|
||||||
|
add_definitions(-DUNIX_LINUX_MUSL)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||||
|
@ -789,11 +789,11 @@ void InitInternational()
|
|||||||
d = IconvWideToStrInternal();
|
d = IconvWideToStrInternal();
|
||||||
if (d == (void *)-1)
|
if (d == (void *)-1)
|
||||||
{
|
{
|
||||||
#ifdef UNIX_MACOS
|
#if defined (UNIX_MACOS) || defined (UNIX_LINUX_MUSL)
|
||||||
StrCpy(charset, sizeof(charset), "utf-8");
|
StrCpy(charset, sizeof(charset), "utf-8");
|
||||||
#else // UNIX_MACOS
|
#else // defined (UNIX_MACOS) || defined (UNIX_LINUX_MUSL)
|
||||||
StrCpy(charset, sizeof(charset), "EUCJP");
|
StrCpy(charset, sizeof(charset), "EUCJP");
|
||||||
#endif // UNIX_MACOS
|
#endif // defined (UNIX_MACOS) || defined (UNIX_LINUX_MUSL)
|
||||||
d = IconvWideToStrInternal();
|
d = IconvWideToStrInternal();
|
||||||
if (d == (void *)-1)
|
if (d == (void *)-1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user