[compiler-rt] r196779 - PR17977: don't assume EOWNERDEAD is always defined
Alexey Samsonov
samsonov at google.com
Mon Dec 9 05:21:43 PST 2013
Author: samsonov
Date: Mon Dec 9 07:21:43 2013
New Revision: 196779
URL: http://llvm.org/viewvc/llvm-project?rev=196779&view=rev
Log:
PR17977: don't assume EOWNERDEAD is always defined
Summary: See details in http://llvm.org/bugs/show_bug.cgi?id=17977
Reviewers: dvyukov
Reviewed By: dvyukov
CC: glider, llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2340
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc?rev=196779&r1=196778&r2=196779&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc Mon Dec 9 07:21:43 2013
@@ -762,7 +762,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));
More information about the llvm-commits
mailing list