make quassel compile in deploy mode again (mac os x only)
authorMarcus Eggenberger <egs@quassel-irc.org>
Sun, 17 Aug 2008 20:39:12 +0000 (22:39 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sun, 17 Aug 2008 20:39:12 +0000 (22:39 +0200)
CMakeLists.txt
src/common/main.cpp

index c93fa63..288f7ab 100644 (file)
@@ -61,6 +61,7 @@ if(APPLE AND DEPLOY)
   set(CMAKE_OSX_ARCHITECTURES "i386;ppc")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4")
   set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
+  add_definitions(-DMAC_10_4_SDK)
 endif(APPLE AND DEPLOY)
 
 # Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do...
index 8c62ac0..5ce1ac9 100644 (file)
@@ -54,7 +54,7 @@
 
 #include <signal.h>
 
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
 #include <execinfo.h>
 #include <dlfcn.h>
 #include <cxxabi.h>
@@ -66,7 +66,7 @@ void handle_signal(int sig) {
   QCoreApplication::quit();
 }
 
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
 void handle_crash(int sig) {
   void* callstack[128];
   int i, frames = backtrace(callstack, 128);
@@ -136,7 +136,7 @@ int main(int argc, char **argv) {
   signal(SIGTERM, handle_signal);
   signal(SIGINT, handle_signal);
 
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
   signal(SIGABRT, handle_crash);
   signal(SIGBUS, handle_crash);
   signal(SIGSEGV, handle_crash);