From 44ffe22c9419aba16770aef835509930a5e84ebd Mon Sep 17 00:00:00 2001 From: steigr Date: Tue, 25 Jul 2017 22:25:10 +0200 Subject: [PATCH] Fix compiling issues with musl libc `` is glibc and not available on `__linux__` in general. --- src/common/src/pgr_assert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/pgr_assert.cpp b/src/common/src/pgr_assert.cpp index 69dfcb7d2f1..2249a796752 100644 --- a/src/common/src/pgr_assert.cpp +++ b/src/common/src/pgr_assert.cpp @@ -15,7 +15,7 @@ #include #include -#ifdef __linux__ +#ifdef __GLIBC__ #include #endif @@ -24,7 +24,7 @@ std::string get_backtrace() { -#ifdef __linux__ +#ifdef __GLIBC__ void *trace[16]; int i, trace_size = 0;