This is an archive of the discontinued LLVM Phabricator instance.

Fix asan_test.cc build on NetBSD
ClosedPublic

Authored by krytarowski on Aug 7 2017, 9:19 AM.

Details

Summary

Include <stdarg.h> for variable argument list macros (va_list, va_start etc).

Add fallback definition of _LIBCPP_GET_C_LOCALE, this is required for
GNU libstdc++ compatibility. Define new macro SANITIZER_GET_C_LOCALE.
This value is currently required for FreeBSD and NetBSD for printf_l(3) tests.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Aug 7 2017, 9:19 AM
vitalybuka accepted this revision.Aug 7 2017, 3:51 PM
This revision is now accepted and ready to land.Aug 7 2017, 3:51 PM
krytarowski closed this revision.Aug 7 2017, 4:38 PM