diff options
Diffstat (limited to 'compiler-rt/lib/scudo/standalone/tsd.h')
-rw-r--r-- | compiler-rt/lib/scudo/standalone/tsd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tsd.h b/compiler-rt/lib/scudo/standalone/tsd.h index d3958ddfc73..10cb83f94fd 100644 --- a/compiler-rt/lib/scudo/standalone/tsd.h +++ b/compiler-rt/lib/scudo/standalone/tsd.h @@ -15,6 +15,11 @@ #include <limits.h> // for PTHREAD_DESTRUCTOR_ITERATIONS +// With some build setups, this might still not be defined. +#ifndef PTHREAD_DESTRUCTOR_ITERATIONS +#define PTHREAD_DESTRUCTOR_ITERATIONS 4 +#endif + namespace scudo { template <class Allocator> struct ALIGNED(SCUDO_CACHE_LINE_SIZE) TSD { |