On Thu, Dec 19, 2013 at 02:12:44PM +0400, Konstantin Serebryany wrote:
> 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.

Ok.

> +2013-12-19  Kostya Serebryany  <k...@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...@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));

        Jakub

Reply via email to