Skip to content

Commit 97fb693

Browse files
committed
Revert sys/ucontext.h change
1 parent 6a26378 commit 97fb693

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/coreclr/nativeaot/Runtime/unix/UnixContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef __UNIX_CONTEXT_H__
55
#define __UNIX_CONTEXT_H__
66

7-
#include <sys/ucontext.h>
7+
#include <ucontext.h>
88

99
// Convert Unix native context to PAL_LIMITED_CONTEXT
1010
void NativeContextToPalContext(const void* context, PAL_LIMITED_CONTEXT* palContext);

Diff for: src/coreclr/pal/src/configure.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ endif()
615615

616616
check_c_source_compiles("
617617
#include <libunwind.h>
618-
#include <sys/ucontext.h>
618+
#include <ucontext.h>
619619
int main(int argc, char **argv)
620620
{
621621
unw_context_t libUnwindContext;

Diff for: src/coreclr/pal/src/include/pal/context.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C"
3333
/* A type to wrap the native context type, which is ucontext_t on some
3434
* platforms and another type elsewhere. */
3535
#if HAVE_UCONTEXT_T
36-
#include <sys/ucontext.h>
36+
#include <ucontext.h>
3737

3838
typedef ucontext_t native_context_t;
3939
#else // HAVE_UCONTEXT_T

0 commit comments

Comments
 (0)