Ignore:
Timestamp:
Nov 16, 2009, 7:44:53 PM (10 years ago)
Author:
rme
Message:

Changes to allow the Dawrin/x86 lisp kernels to build with the 10.5 SDK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisptypes.h

    r13067 r13206  
    8383#include <sys/signal.h>
    8484#include <sys/ucontext.h>
     85#include <AvailabilityMacros.h>
    8586
    8687#ifdef PPC
     
    110111
    111112#ifdef X8664
    112 /* Broken <i386/ucontext.h> in xcode 2.4 */
    113 #ifndef _STRUCT_MCONTEXT64 /* A guess at what'll be defined when this is fixed */
     113#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
     114/* Broken <i386/ucontext.h> in Mac OS 10.4u SDK */
    114115struct mcontext64 {
    115116        x86_exception_state64_t __es;
     
    125126#define __fpu_xmm0 fpu_xmm0
    126127#define __rsp rsp
     128#define __trapno trapno
    127129#define __faultvaddr faultvaddr
    128130#define __err err
     
    134136#define __r8 r8
    135137#define __rflags rflags
    136 #else
     138#else /* post-10.4 */
    137139typedef mcontext_t MCONTEXT_T;
    138140typedef ucontext_t ExceptionInformation;
    139141#define UC_MCONTEXT(UC) UC->uc_mcontext
    140 #endif /* _STRUCT_MCONTEXT64 */
    141 #endif /* X86_64 */
     142#endif
     143#endif
    142144
    143145#ifdef X8632
     
    151153   names (without leading __ prefixes.)  Confused yet ? */
    152154
    153 /* #if STILL_SUPPORT_TIGER */
     155#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
    154156#define __ss ss
    155157#define __ds ds
     
    165167#define __fpu_mxcsr fpu_mxcsr
    166168#define __fpu_stmm0 fpu_stmm0
     169#define __trapno trapno
    167170#define __err err
    168171#define __faultvaddr faultvaddr
    169 /* #endif STILL_SUPPORT_TIGER */
     172#endif
    170173
    171174#define UC_MCONTEXT(UC) UC->uc_mcontext
Note: See TracChangeset for help on using the changeset viewer.