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

Don't assume availability of get_nprocs_conf() #2

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

jserv
Copy link
Member

@jserv jserv commented Mar 14, 2018

get_nprocs_conf() is Linux-specific, and on macOS, it is absent.
Our own implementation of get_nprocs_conf() on macOS is provided
for compatibility.

src/pow_sse.c Outdated

/* On Mac OS X, define our own get_nprocs_conf() */
#if defined (__APPLE__) || defined(__FreeBSD__)
#include <pthread.h>
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate inclusion of <pthread.h>

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE in force-updated commit.

get_nprocs_conf() is Linux-specific, and on macOS, it is absent.
Our own implementation of get_nprocs_conf() on macOS is provided
for compatibility.
@furuame furuame merged commit 4e1340d into DLTcollab:dev Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants