summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Summers <ben@fluffy.co.uk>2006-02-21 15:47:08 +0000
committerBen Summers <ben@fluffy.co.uk>2006-02-21 15:47:08 +0000
commit5839c5a7fc2d84cb544cd372707dc2fa21f2f074 (patch)
tree8f38b9f9bd220d544e2359e68b472e91681dce26 /lib
parent25af6a245ea30fded95fb8deacce12b5378760a2 (diff)
Disable memory testing on Darwin -- order of destructors of static variables is nasty so debug processes segfault on termination
Diffstat (limited to 'lib')
-rw-r--r--lib/common/BoxPlatform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h
index b7a72da9..b766706a 100644
--- a/lib/common/BoxPlatform.h
+++ b/lib/common/BoxPlatform.h
@@ -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