diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-21 10:57:31 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-21 10:59:41 -0800 |
commit | 393325f908f8bd6648e466183f3683a2d80b264e (patch) | |
tree | 4da3d06633108b127ea962a782a66af9402d9680 | |
parent | 5d47a5d6526b7e52387647a15a580dfcafd1733f (diff) |
XQuartz: spewCallStack is noop on Tiger now...
(cherry picked from commit 56c469a68b92c6cf003802f418ea00bd596a41c3)
-rw-r--r-- | hw/xquartz/threadSafety.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hw/xquartz/threadSafety.c b/hw/xquartz/threadSafety.c index b5a4ecf95..85f85bd0a 100644 --- a/hw/xquartz/threadSafety.c +++ b/hw/xquartz/threadSafety.c @@ -31,11 +31,14 @@ #include "threadSafety.h" #include "os.h" -#include <execinfo.h> - pthread_t APPKIT_THREAD_ID; pthread_t SERVER_THREAD_ID; +#include <AvailabilityMacros.h> + +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 +#include <execinfo.h> + void spewCallStack(void) { void* callstack[128]; int i, frames = backtrace(callstack, 128); @@ -47,6 +50,11 @@ void spewCallStack(void) { free(strs); } +#else +void spewCallStack(void) { + return; +} +#endif void _threadSafetyAssert(pthread_t tid, const char *file, const char *fun, int line) { if(pthread_equal(pthread_self(), tid)) |