#include <mach/mach_init.h>
#include <mach/task.h>
+#include <AvailabilityMacros.h>
/* man pages claim that the third argument is a sigcontext struct,
but ucontext_t is defined, matches sigcontext where sensible,
#if defined(LISP_FEATURE_X86)
#include <sys/ucontext.h>
#include <sys/_types.h>
-#if __DARWIN_UNIX03
+#ifdef MAC_OS_X_VERSION_10_5
typedef struct __darwin_ucontext os_context_t;
#else
typedef struct ucontext os_context_t;
#elif defined __FreeBSD__
return &context->uc_mcontext.mc_rflags;
#elif defined LISP_FEATURE_DARWIN
-#if defined __DARWIN_UNIX03
+#ifdef MAC_OS_X_VERSION_10_5
return &context->uc_mcontext->__ss.__rflags;
#else
return &context->uc_mcontext->ss.rflags;
#include <stdlib.h>
#include <stdio.h>
-#if __DARWIN_UNIX03
+#ifdef MAC_OS_X_VERSION_10_5
#include <sys/_structs.h>
#endif
-#if __DARWIN_UNIX03
+#ifdef MAC_OS_X_VERSION_10_5
typedef struct __darwin_ucontext darwin_ucontext;
typedef struct __darwin_mcontext64 darwin_mcontext;
return (os_context_t *) *void_context;
}
-#if defined __DARWIN_UNIX03
+#ifdef MAC_OS_X_VERSION_10_5
#define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->__ss.__##stem
#else
#define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.10.36"
+"1.0.10.37"