Skip to content

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

Merged
janvorli merged 3 commits intodotnet:masterfrom
am11:feature/illumos/ucontext-vs-sys_ucontext
Jan 14, 2021
Merged

Prefer ucontext.h over sys/ucontext.h#46790
janvorli merged 3 commits intodotnet:masterfrom
am11:feature/illumos/ucontext-vs-sys_ucontext

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!

if (CLR_CMAKE_HOST_OSX)
add_definitions(-D_XOPEN_SOURCE)
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