ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/sysdeps.h
(Generate patch)

Comparing SheepShaver/src/Unix/sysdeps.h (file contents):
Revision 1.57 by gbeauche, 2008-01-01T09:47:39Z vs.
Revision 1.59 by asvitkine, 2009-08-17T20:44:30Z

# Line 64 | Line 64
64   # endif
65   #endif
66  
67 + #ifdef __MACH__
68 + #include <mach/mach_types.h>
69 + #endif
70 +
71   // Fix offsetof() on FreeBSD and GCC >= 3.4
72   #if defined(__FreeBSD__) && defined(__cplusplus)
73   #undef offsetof
# Line 108 | Line 112
112   #define PPC_DECODE_CACHE 1
113   #define PPC_FLIGHT_RECORDER 1
114   #define PPC_PROFILE_COMPILE_TIME 0
115 < #define PPC_PROFILE_GENERIC_CALLS 1
115 > #define PPC_PROFILE_GENERIC_CALLS 0
116   #define PPC_PROFILE_REGS_USE 0
117   #define KPX_MAX_CPUS 1
118   #if ENABLE_DYNGEN
# Line 400 | Line 404 | static inline int spin_trylock(spinlock_
404   // Time data type for Time Manager emulation
405   #ifdef HAVE_CLOCK_GETTIME
406   typedef struct timespec tm_time_t;
407 + #elif defined(__MACH__)
408 + typedef mach_timespec_t tm_time_t;
409   #else
410   typedef struct timeval tm_time_t;
411   #endif
# Line 416 | Line 422 | typedef struct timeval tm_time_t;
422   #if defined(HAVE_PTHREADS) && defined(HAVE_CLOCK_NANOSLEEP)
423   #define PRECISE_TIMING 1
424   #define PRECISE_TIMING_POSIX 1
425 + #elif defined(HAVE_PTHREADS) && defined(__MACH__)
426 + #define PRECISE_TIMING 1
427 + #define PRECISE_TIMING_MACH 1
428   #endif
429  
430   // Timing functions

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines