This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libsanitizer: fix build on Mac 10.6


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  <kcc@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.lu@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]