1.0.22.13: fixed bug 426: nested inline expansion failure
[sbcl/tcr.git] / src / runtime / darwin-os.h
blobf0923d7b4b8306897cc86b247fc9c89ebaf914b8
1 #ifndef _DARWIN_OS_H
2 #define _DARWIN_OS_H
4 /* this is meant to be included from bsd-os.h */
6 #include <mach/mach_init.h>
7 #include <mach/task.h>
8 #include <AvailabilityMacros.h>
9 #include <sys/cdefs.h>
11 /* man pages claim that the third argument is a sigcontext struct,
12 but ucontext_t is defined, matches sigcontext where sensible,
13 offers better access to mcontext, and is of course the SUSv2-
14 mandated type of the third argument, so we use that instead.
15 If Apple is going to break ucontext_t out of spite, I'm going
16 to be cross with them ;) -- PRM */
18 #if defined(LISP_FEATURE_X86)
19 #include <sys/ucontext.h>
20 #include <sys/_types.h>
22 #if __DARWIN_UNIX03
23 typedef struct __darwin_ucontext os_context_t;
24 #else
25 typedef struct ucontext os_context_t;
26 #endif
29 #else
30 #include <ucontext.h>
31 typedef ucontext_t os_context_t;
32 #endif
34 #define SIG_MEMORY_FAULT SIGBUS
36 #define SIG_INTERRUPT_THREAD (SIGINFO)
37 #define SIG_STOP_FOR_GC (SIGUSR1)
38 #define SIG_RESUME_FROM_GC (SIGUSR2)
40 #endif /* _DARWIN_OS_H */