mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
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 llvm-svn: 196779
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user