4 /* this is meant to be included from bsd-os.h */
6 #include <mach/mach_init.h>
9 /* man pages claim that the third argument is a sigcontext struct,
10 but ucontext_t is defined, matches sigcontext where sensible,
11 offers better access to mcontext, and is of course the SUSv2-
12 mandated type of the third argument, so we use that instead.
13 If Apple is going to break ucontext_t out of spite, I'm going
14 to be cross with them ;) -- PRM */
16 #if defined(LISP_FEATURE_X86)
17 #include <sys/ucontext.h>
18 #include <sys/_types.h>
19 typedef struct ucontext os_context_t
;
23 typedef ucontext_t os_context_t
;
26 #define SIG_MEMORY_FAULT SIGBUS
28 #define SIG_INTERRUPT_THREAD (SIGINFO)
29 #define SIG_STOP_FOR_GC (SIGUSR1)
30 #define SIG_RESUME_FROM_GC (SIGUSR2)
32 #endif /* _DARWIN_OS_H */