mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
WIP: musl port
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user