From 28e7f0c456ad256417203594f4e8bb9a14c8279f Mon Sep 17 00:00:00 2001 From: Erling Date: Sat, 4 Jun 2022 00:06:53 +0200 Subject: [PATCH] Move unistd.h and execinfo.h includes out of reactor namespace --- include/reactor-cpp/assert.hh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/reactor-cpp/assert.hh b/include/reactor-cpp/assert.hh index 827aba47..c67154ca 100644 --- a/include/reactor-cpp/assert.hh +++ b/include/reactor-cpp/assert.hh @@ -28,6 +28,11 @@ constexpr bool runtime_assertion = true; #include #include +#ifdef __linux__ +#include +#include +#endif + namespace reactor { using EnvPhase = Environment::Phase; @@ -41,8 +46,6 @@ public: }; #ifdef __linux__ -#include -#include inline void print_debug_backtrace() { void* array[10]; // NOLINT