tsan: fix windows build
authorDmitry Vyukov <dvyukov@google.com>
Wed, 20 Jul 2016 11:43:52 +0000 (11:43 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 20 Jul 2016 11:43:52 +0000 (11:43 +0000)
commitbbed03ee9bd169a8f69986830deebe0fda8a35af
tree7f769e671e8f831555535d10723ac43a39d1a4f6
parentb4d64cf27d1dc9431bd75d69631850ef79531166
tsan: fix windows build

Currently fails as:

gotsan.cc: In function 'void* __sanitizer::__libc_memalign(__sanitizer::uptr, __sanitizer::uptr)':
gotsan.cc:6194:50: error: 'posix_memalign' was not declared in this scope
   uptr error = posix_memalign(&p, alignment, size);

Windows does not provide posix_memalign.

llvm-svn: 276107
compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc