r15399 by craig - #9311: Avoid building this testing backtrace function on OpenBSD

scribus-commit scribus-commit at lists.scribus.net
Wed Aug 4 22:29:37 CEST 2010


Author: craig
Date: Wed Aug  4 20:29:37 2010
New Revision: 15399

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15399
Log:
#9311: Avoid building this testing backtrace function on OpenBSD

Modified:
    trunk/Scribus/scribus/util.cpp

Modified: trunk/Scribus/scribus/util.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15399&path=/trunk/Scribus/scribus/util.cpp
==============================================================================
--- trunk/Scribus/scribus/util.cpp (original)
+++ trunk/Scribus/scribus/util.cpp Wed Aug  4 20:29:37 2010
@@ -930,7 +930,6 @@
 	}
 }
 
-#if !defined(_WIN32) && !defined(Q_OS_MAC)
 /**
  * Print a backtrace
  * Please never commit code that uses it.
@@ -938,6 +937,7 @@
  */
 void printBacktrace ( int nFrames )
 {
+#if !defined(_WIN32) && !defined(Q_OS_MAC) && !defined(Q_OS_OPENBSD)
 	void ** trace = new void*[nFrames + 1];
 	char **messages = ( char ** ) NULL;
 	int i, trace_size = 0;
@@ -982,6 +982,6 @@
 		free ( messages );
 	}
 	delete[] trace;
-}
 #endif
-
+}
+




More information about the scribus-commit mailing list