mirror of
https://git.sr.ht/~leon_plickat/wlopm
synced 2024-12-26 05:28:22 +01:00
Use correct OS macro to guard execinfo.h
This commit is contained in:
parent
262fc7c870
commit
c61cbb4573
4
wlopm.c
4
wlopm.c
@ -27,7 +27,7 @@
|
||||
#include <unistd.h>
|
||||
#include <wayland-client.h>
|
||||
|
||||
#ifndef BSD
|
||||
#ifdef __linux__
|
||||
#include<execinfo.h>
|
||||
#endif
|
||||
|
||||
@ -431,7 +431,7 @@ static void handle_error (int signum)
|
||||
"\n";
|
||||
fputs(msg, stderr);
|
||||
|
||||
#ifndef BSD
|
||||
#ifdef __linux__
|
||||
fputs("Attempting to get backtrace:\n", stderr);
|
||||
|
||||
/* In some rare cases, getting a backtrace can also cause a segfault.
|
||||
|
Loading…
Reference in New Issue
Block a user