[PATCH] PR17977: don't assume EOWNERDEAD is always defined
Alexey Samsonov
samsonov at google.com
Thu Dec 5 05:44:17 PST 2013
Hi dvyukov,
See details in http://llvm.org/bugs/show_bug.cgi?id=17977
http://llvm-reviews.chandlerc.com/D2340
Files:
lib/sanitizer_common/sanitizer_platform_limits_posix.cc
Index: lib/sanitizer_common/sanitizer_platform_limits_posix.cc
===================================================================
--- lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -762,7 +762,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));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2340.1.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131205/f6777505/attachment.bin>
More information about the llvm-commits
mailing list