From f78a62797de3d02b2ca841e3aa240bab961912cf Mon Sep 17 00:00:00 2001
From: Piotr Wójcik <chocimier@tlen.pl>
Date: Sat, 29 Jan 2022 17:51:20 +0100
Subject: musl

Relying on __MUSL__ being defined worked with R-cran build style,
as R template exports it. With other build styles things failed.
Detect glibc instead.
---
 inst/include/Rcpp/exceptions_impl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Rcpp/inst/include/Rcpp/exceptions_impl.h b/Rcpp/inst/include/Rcpp/exceptions_impl.h
index 8f45028..74763d9 100644
--- a/Rcpp/inst/include/Rcpp/exceptions_impl.h
+++ b/Rcpp/inst/include/Rcpp/exceptions_impl.h
@@ -34,7 +34,7 @@
     defined(__HAIKU__)   || \
     defined(__ANDROID__)
 #  define RCPP_DEMANGLER_ENABLED 0
-# elif defined(__GNUC__)  || defined(__clang__)
+# elif defined(__GLIBC__)
 #  include <execinfo.h>
 #  define RCPP_DEMANGLER_ENABLED 1
 # else
-- 
2.35.0

