Skip to content

Commit

Permalink
Revert sys/ucontext.h change
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Nov 30, 2024
1 parent 6a26378 commit 97fb693
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/unix/UnixContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef __UNIX_CONTEXT_H__
#define __UNIX_CONTEXT_H__

#include <sys/ucontext.h>
#include <ucontext.h>

// Convert Unix native context to PAL_LIMITED_CONTEXT
void NativeContextToPalContext(const void* context, PAL_LIMITED_CONTEXT* palContext);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ endif()

check_c_source_compiles("
#include <libunwind.h>
#include <sys/ucontext.h>
#include <ucontext.h>
int main(int argc, char **argv)
{
unw_context_t libUnwindContext;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/include/pal/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C"
/* A type to wrap the native context type, which is ucontext_t on some
* platforms and another type elsewhere. */
#if HAVE_UCONTEXT_T
#include <sys/ucontext.h>
#include <ucontext.h>

typedef ucontext_t native_context_t;
#else // HAVE_UCONTEXT_T
Expand Down

0 comments on commit 97fb693

Please sign in to comment.