WIP: musl port

This commit is contained in:
nillerusr
2023-04-24 22:39:09 +00:00
parent ba695d2092
commit 699271f212
57 changed files with 24 additions and 2346 deletions
+2 -4
View File
@@ -386,9 +386,7 @@ DBG_INTERFACE bool ShouldUseNewAssertDialog()
#endif // DBGFLAG_ASSERTDLG
}
#if defined( POSIX ) && !defined ( ANDROID )
#include <execinfo.h>
#if defined( POSIX ) && PLATFORM_GLIBC
static void SpewBacktrace()
{
@@ -441,7 +439,7 @@ DBG_INTERFACE bool DoNewAssertDialog( const tchar *pFilename, int line, const tc
pFilename, line, pExpression);
if ( getenv( "POSIX_ASSERT_BACKTRACE" ) )
{
#if !defined ( ANDROID )
#if PLATFORM_GLIBC
SpewBacktrace();
#endif
}
+2 -2
View File
@@ -27,7 +27,7 @@
#include <set>
#endif
#if defined( LINUX ) && !defined( ANDROID )
#if defined( LINUX ) && defined( PLATFORM_GLIBC )
#include <execinfo.h>
#endif
@@ -38,7 +38,7 @@
#if !defined( ENABLE_RUNTIME_STACK_TRANSLATION ) //disable the whole toolset
#if defined( LINUX ) && !defined( ANDROID )
#if defined( LINUX ) && defined( PLATFORM_GLIBC )
int GetCallStack( void **pReturnAddressesOut, int iArrayCount, int iSkipCount )
{
-5
View File
@@ -27,13 +27,8 @@
#define GetLastError() errno
typedef void *LPVOID;
#if !defined(OSX)
#if defined(ANDROID)
#include <fcntl.h>
#include <unistd.h>
#else
#include <sys/fcntl.h>
#include <sys/unistd.h>
#endif
#define sem_unlink( arg )
#define OS_TO_PTHREAD(x) (x)
#else