diff options
author | Ben Summers <ben@fluffy.co.uk> | 2006-02-21 15:47:08 +0000 |
---|---|---|
committer | Ben Summers <ben@fluffy.co.uk> | 2006-02-21 15:47:08 +0000 |
commit | 5839c5a7fc2d84cb544cd372707dc2fa21f2f074 (patch) | |
tree | 8f38b9f9bd220d544e2359e68b472e91681dce26 /lib/common/BoxPlatform.h | |
parent | 25af6a245ea30fded95fb8deacce12b5378760a2 (diff) |
Disable memory testing on Darwin -- order of destructors of static variables is nasty so debug processes segfault on termination
Diffstat (limited to 'lib/common/BoxPlatform.h')
-rw-r--r-- | lib/common/BoxPlatform.h | 6 |
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 |