Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use sched_getcpu on linux machines #2865

Merged
merged 1 commit into from Aug 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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() '#'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that break on non-Linux machines?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After looking closer: all is fine. Thanks!

#endif


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