libsanitizer: fix build on Mac 10.6

From-SVN: r206113
This commit is contained in:
Kostya Serebryany 2013-12-19 12:54:11 +00:00 committed by Kostya Serebryany
parent d0de9e136f
commit 409f3b4663
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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));