From b94ee3e9517973172f5e1a3ecaa053941a6a44f0 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Fri, 19 Nov 2021 15:12:58 +0100 Subject: Use correct OS macro for guarding execinfo.h --- meson.build | 4 ---- src/wlclock.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 6d5c7ff..bd8a15c 100644 --- a/meson.build +++ b/meson.build @@ -30,10 +30,6 @@ cairo = dependency('cairo') realtime = cc.find_library('rt') math = cc.find_library('m') -if ['dragonfly', 'freebsd', 'netbsd', 'openbsd'].contains(host_machine.system()) - add_project_arguments(cc.get_supported_arguments([ '-DBSD' ]), language: 'c') -endif - subdir('protocol') executable( diff --git a/src/wlclock.c b/src/wlclock.c index e3d4de7..bbddf35 100644 --- a/src/wlclock.c +++ b/src/wlclock.c @@ -8,7 +8,7 @@ #include #include -#ifndef BSD +#ifdef __linux__ #include #endif @@ -57,7 +57,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. -- cgit v1.2.3