libsanitizer: fix build on Mac 10.6
Konstantin Serebryany
konstantin.s.serebryany@gmail.com
Thu Dec 19 10:13:00 GMT 2013
Hi,
Please review a small patch (backport from upstream) for libsanitizer.
We are having difficulties on our side and (likely) won't make a full
libsanitizer merge until early Jan.
Index: libsanitizer/ChangeLog
===================================================================
--- libsanitizer/ChangeLog (revision 206107)
+++ libsanitizer/ChangeLog (working copy)
@@ -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
Index: libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
===================================================================
--- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
(revision 206107)
+++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
(working copy)
@@ -760,7 +760,12 @@
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));
More information about the Gcc-patches
mailing list