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

Prefer ucontext.h over sys/ucontext.h #46790

Merged
merged 3 commits into from
Jan 14, 2021
Merged

Prefer ucontext.h over sys/ucontext.h #46790

merged 3 commits into from
Jan 14, 2021

Conversation

am11
Copy link
Member

@am11 am11 commented Jan 10, 2021

The header ucontext.h includes sys/ucontext.h on Linux, macOS and illumos with some additional defines and register handling. Vice-versa is true on FreeBSD.

@am11
Copy link
Member Author

am11 commented Jan 11, 2021

cc @janvorli

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

add_definitions(-DUNW_REMOTE_ONLY)
add_definitions(-D__APPLE__)
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for noticing this extra definition of __APPLE__

@am11
Copy link
Member Author

am11 commented Jan 14, 2021

@janvorli, if there are no other feedback, could this be merged?

@janvorli janvorli merged commit 796cbee into dotnet:master Jan 14, 2021
@janvorli
Copy link
Member

I am sorry for the delay, I haven't noticed that the CI was green. I should start setting auto-merge on PRs that I approve.

@am11 am11 deleted the feature/illumos/ucontext-vs-sys_ucontext branch January 14, 2021 12:33
@ghost ghost locked as resolved and limited conversation to collaborators Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants