Skip to content

Commit

Permalink
src/sdl/i_system.c: Guard backtrace(3) behind glibc and *BSD
Browse files Browse the repository at this point in the history
Present in NetBSD 7.0+, OpenBSD 7.0+, FreeBSD 10.0+, DragonFlyBSD, GNU glibc 2.1+

Absent in POSIX and musl libc.
  • Loading branch information
lanodan committed Dec 14, 2023
1 parent 3cb384b commit 957d907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl/i_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T);
#include <errno.h>
#endif

#if defined (__unix__) || defined(__APPLE__) || defined (UNIXCOMMON)
#if defined (__unix__) || defined(__APPLE__) || defined (__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <execinfo.h>
#include <time.h>
#define UNIXBACKTRACE
Expand Down

0 comments on commit 957d907

Please sign in to comment.