Commit 409f3b46 by Kostya Serebryany Committed by Kostya Serebryany

libsanitizer: fix build on Mac 10.6

From-SVN: r206113
parent d0de9e13
2013-12-19 Kostya Serebryany <kcc@google.com>
* sanitizer_common/sanitizer_platform_limits_posix.cc:
workaround for missing definition of EOWNERDEAD, backport
from upstream r196779.
2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
* sanitizer_common/sanitizer_platform_limits_posix.h
......
......@@ -760,7 +760,12 @@ namespace __sanitizer {
unsigned IOCTL_TIOCSSERIAL = TIOCSSERIAL;
#endif
// EOWNERDEAD is not present in some older platforms.
#if defined(EOWNERDEAD)
extern const int errno_EOWNERDEAD = EOWNERDEAD;
#else
extern const int errno_EOWNERDEAD = -1;
#endif
} // namespace __sanitizer
COMPILER_CHECK(sizeof(__sanitizer_pthread_attr_t) >= sizeof(pthread_attr_t));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment