Adjust header logic to match x86_64 one

ucontext.h no longer contains struct ucontext.
This commit is contained in:
deadwood 2023-01-26 18:09:58 +01:00
parent 78fdbb8c82
commit f9aabaf6bb
1 changed files with 7 additions and 3 deletions

View File

@ -14,8 +14,12 @@
#include <exec/types.h>
#include <aros/arm/cpucontext.h>
#ifndef __AROS_EXEC_LIBRARY__
#ifdef __AROS_EXEC_LIBRARY__
struct ucontext;
typedef struct ucontext regs_t;
#else
/*
* This part is included only in host-specific code because it relies
* on host includes! __AROS_EXEC_LIBRARY__ definition is used to indicate
@ -51,6 +55,8 @@ struct ucontext
#include <ucontext.h>
#endif
typedef ucontext_t regs_t;
/* name and type of the signal handler */
#define SIGHANDLER linux_sighandler
#define SIGHANDLER_T __sighandler_t
@ -122,8 +128,6 @@ do { \
/* We emulate 6 exceptions of ARM CPU (all but softint) */
#define EXCEPTIONS_COUNT 6
typedef struct ucontext regs_t;
/* This structure is used to save/restore registers */
struct AROSCPUContext
{