Skip to content

Commit

Permalink
Add #include files needed to set _POSIX_VERSION for debug check
Browse files Browse the repository at this point in the history
Debugger was not being attached because the relevant code was #ifdef'ed
out and therefore being skipped completely on some linux flavours
  • Loading branch information
biddisco committed Oct 4, 2017
1 parent 50d061f commit 70a7d5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/util/debugging.cpp
Expand Up @@ -9,10 +9,19 @@

#include <iostream>

#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
/* UNIX-style OS. ------------------------------------------- */
#include <unistd.h>
#endif

#if defined(HPX_WINDOWS)
#include <Windows.h>
#endif // HPX_WINDOWS

#if defined(_POSIX_VERSION)
#include <boost/asio/ip/host_name.hpp>
#endif

namespace hpx {
namespace util {
void attach_debugger()
Expand Down

0 comments on commit 70a7d5a

Please sign in to comment.