diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-06-10 10:02:02 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-06-10 10:02:02 +0000 |
commit | c5288679cc55c523188a40325d49d97b100cf03c (patch) | |
tree | 999a6d267e236ce4f14fd356f4a74bced7d2428b /lib/sanitizer_common/sanitizer_win.cc | |
parent | bb5aecb56d84e09106a88aca2d30fbb0b29b2e9c (diff) | |
download | compiler-rt-c5288679cc55c523188a40325d49d97b100cf03c.tar.gz compiler-rt-c5288679cc55c523188a40325d49d97b100cf03c.tar.bz2 compiler-rt-c5288679cc55c523188a40325d49d97b100cf03c.tar.xz |
tsan: fix windows mingw build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_win.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_win.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc index e76f1d1f..a88b7edb 100644 --- a/lib/sanitizer_common/sanitizer_win.cc +++ b/lib/sanitizer_common/sanitizer_win.cc @@ -124,7 +124,7 @@ void *MapFileToMemory(const char *file_name, uptr *buff_size) { } static const int kMaxEnvNameLength = 128; -static const int kMaxEnvValueLength = 32767; +static const DWORD kMaxEnvValueLength = 32767; namespace { @@ -198,6 +198,10 @@ void SleepForMillis(int millis) { Sleep(millis); } +u64 NanoTime() { + return 0; +} + void Abort() { abort(); _exit(-1); // abort is not NORETURN on Windows. |