[Box Backup-dev] COMMIT r483 - box/trunk/lib/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Tue, 21 Feb 2006 15:47:09 +0000 (GMT)


Author: ben
Date: 2006-02-21 15:47:08 +0000 (Tue, 21 Feb 2006)
New Revision: 483

Modified:
   box/trunk/lib/common/BoxPlatform.h
Log:
Disable memory testing on Darwin -- order of destructors of static variables is nasty so debug processes segfault on termination

Modified: box/trunk/lib/common/BoxPlatform.h
===================================================================
--- box/trunk/lib/common/BoxPlatform.h	2006-02-21 00:24:54 UTC (rev 482)
+++ box/trunk/lib/common/BoxPlatform.h	2006-02-21 15:47:08 UTC (rev 483)
@@ -46,6 +46,12 @@
 	#define PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE
 #endif
 
+// Disable memory testing under Darwin, it just doesn't like it very much.
+#ifdef __APPLE__
+	// TODO: We really should get some decent leak detection code.
+	#define PLATFORM_DISABLE_MEM_LEAK_TESTING
+#endif
+
 // Find out if credentials on UNIX sockets can be obtained
 #ifndef HAVE_GETPEEREID
 	#if !HAVE_DECL_SO_PEERCRED