Use correct OS macro to guard execinfo.h

This commit is contained in:
Leon Henrik Plickat 2021-11-19 15:13:32 +01:00
parent 262fc7c870
commit c61cbb4573

View File

@ -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.