summaryrefslogtreecommitdiff
path: root/src/catch.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-16 01:52:36 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-16 01:52:36 +0300
commitece09fcf8eca867459c9eacd16530314fd2a6b8f (patch)
tree27682633157a328ed212e2835751a1008207ec7b /src/catch.hpp
parentd3678e8cc50089651040c2cfd5c89ede472a2f79 (diff)
downloadplus-ece09fcf8eca867459c9eacd16530314fd2a6b8f.tar.gz
plus-ece09fcf8eca867459c9eacd16530314fd2a6b8f.tar.bz2
plus-ece09fcf8eca867459c9eacd16530314fd2a6b8f.tar.xz
plus-ece09fcf8eca867459c9eacd16530314fd2a6b8f.zip
Fix unit tests compilation on bsd systems.
Diffstat (limited to 'src/catch.hpp')
-rw-r--r--src/catch.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/catch.hpp b/src/catch.hpp
index 07ffcc7b1..64d1cafc4 100644
--- a/src/catch.hpp
+++ b/src/catch.hpp
@@ -76,11 +76,9 @@
#include <algorithm>
// stack
-#ifndef ANDROID
-#if defined __linux__ || defined __linux
+#ifdef HAVE_EXECINFO
#include <execinfo.h>
-#endif // defined __linux__ || defined __linux
-#endif // ANDROID
+#endif // HAVE_EXECINFO
// stack
// #included from: catch_compiler_capabilities.h