mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-28 23:21:16 +08:00
libsanitizer: fix build on Mac 10.6
From-SVN: r206113
This commit is contained in:
parent
d0de9e136f
commit
409f3b4663
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user