Commit 9cae9546 authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r196779:

------------------------------------------------------------------------
r196779 | samsonov | 2013-12-09 05:21:43 -0800 (Mon, 09 Dec 2013) | 11 lines

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: 197353
parent 411ef185
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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));