Skip to content

Commit

Permalink
Merge pull request #2865 from STEllAR-GROUP/fixing_2862
Browse files Browse the repository at this point in the history
Only use sched_getcpu on linux machines
  • Loading branch information
biddisco committed Aug 30, 2017
2 parents 19030f9 + 6a34d9b commit 1a50ac6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/parcelport/parcelport_logging.hpp
Expand Up @@ -19,7 +19,12 @@
#include <hpx/util/detail/pp/stringize.hpp>
//
#include <boost/preprocessor.hpp>
#include <sched.h>
#if defined(__linux) || defined(__linux__)
# include <sched.h>
#else
# define sched_getcpu() '#'
#endif


// ------------------------------------------------------------------
// Set flags to help simplify the log defines
Expand Down

0 comments on commit 1a50ac6

Please sign in to comment.