diff options
author | Kostya Serebryany <kcc@google.com> | 2013-12-19 12:54:11 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@gcc.gnu.org> | 2013-12-19 12:54:11 +0000 |
commit | 409f3b466377d3a64b4e9dea792c031e6fcab903 (patch) | |
tree | 8f7e76e2c7a5ff6e9273effd65d1c177b5354e6d /libsanitizer | |
parent | d0de9e136f1dbe307e1d6ebb04b23131056cfa29 (diff) | |
download | gcc-409f3b466377d3a64b4e9dea792c031e6fcab903.tar.gz |
libsanitizer: fix build on Mac 10.6
From-SVN: r206113
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/ChangeLog | 6 | ||||
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index bb568b9d4a0..bc582f47f03 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -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 diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc index 058f40acf23..196eb3b3c64 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -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)); |