Skip to content

Commit

Permalink
Move unistd.h and execinfo.h includes out of reactor namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Erling authored and cmnrd committed Jun 20, 2022
1 parent 09f5a93 commit eebdca0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/reactor-cpp/assert.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ constexpr bool runtime_assertion = true;
#include <stdexcept>
#include <string>

#ifdef __linux__
#include <execinfo.h>
#include <unistd.h>
#endif

namespace reactor {
using EnvPhase = Environment::Phase;

Expand All @@ -41,8 +46,6 @@ public:
};

#ifdef __linux__
#include <execinfo.h>
#include <unistd.h>

inline void print_debug_backtrace() {
void* array[10]; // NOLINT
Expand Down

0 comments on commit eebdca0

Please # to comment.