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

Adjustments to compile with musl libc 1.1.14 #4817

Closed
wants to merge 1 commit into from
Closed

Adjustments to compile with musl libc 1.1.14 #4817

wants to merge 1 commit into from

Conversation

raphaelcohn
Copy link

raidz_bench.c defines RUSAGE_THREAD if not previously defined
This may be fixed in a forthcoming musl version.

zed_log.c includes unistd.h so that read, close, pipe and getpid
are not implicitly defined.

remaining files are corrected to include headers poll.h,
errno.h, signal.h and fcntl.h from the POSIX locations. This
reduces the warnings significantly when building under musl,
allowing more subtle and serious warnings about implicitly
defined functions to stand out.

raidz_bench.c defines RUSAGE_THREAD if not previously defined
This may be fixed in a forthcoming musl version.

zed_log.c includes unistd.h so that read, close, pipe and getpid
are not implicitly defined.

remaining files are corrected to include headers poll.h,
errno.h, signal.h and fcntl.h from the POSIX locations. This
reduces the warnings significantly when building under musl,
allowing more subtle and serious warnings about implicitly
defined functions to stand out.
@behlendorf
Copy link
Contributor

Closing. The RAIDZ code which included the RUSAGE_THREAD code is being slightly refactored to remove this dependency. The other path change can be dealt with as a separate issue.

@behlendorf behlendorf closed this Jul 15, 2016
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.

2 participants