mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-13 06:37:13 +00:00
fix: support backtrace only on glibc systems
execinfo is glibc only, and prevents compiling on other systems.
This commit is contained in:
parent
37d285dba1
commit
bf5f416ba5
|
|
@ -6,7 +6,7 @@
|
|||
#include <assert.h>
|
||||
//#include <system_service.h>
|
||||
#include <codecvt>
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
#include <signal.h>
|
||||
#include <execinfo.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -574,7 +574,7 @@ int StartMinecraftThreadProc( void* lpParameter )
|
|||
|
||||
int main(int argc, const char *argv[] )
|
||||
{
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(__GLIBC__)
|
||||
struct sigaction sa;
|
||||
sa.sa_handler = sigsegv_handler;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue