mirror of
https://git.sr.ht/~leon_plickat/wlopm
synced 2024-12-26 13:38: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 <unistd.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
|
|
||||||
#ifndef BSD
|
#ifdef __linux__
|
||||||
#include<execinfo.h>
|
#include<execinfo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ static void handle_error (int signum)
|
|||||||
"\n";
|
"\n";
|
||||||
fputs(msg, stderr);
|
fputs(msg, stderr);
|
||||||
|
|
||||||
#ifndef BSD
|
#ifdef __linux__
|
||||||
fputs("Attempting to get backtrace:\n", stderr);
|
fputs("Attempting to get backtrace:\n", stderr);
|
||||||
|
|
||||||
/* In some rare cases, getting a backtrace can also cause a segfault.
|
/* In some rare cases, getting a backtrace can also cause a segfault.
|
||||||
|
Loading…
Reference in New Issue
Block a user