[compiler-rt] 1864976 - [Sanitizer] Add Windows header for _mkdir
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 22 08:06:46 PDT 2021
Author: Teresa Johnson
Date: 2021-09-22T08:05:43-07:00
New Revision: 1864976c967de36146eb5a5b86e6312d466e1031
URL: https://github.com/llvm/llvm-project/commit/1864976c967de36146eb5a5b86e6312d466e1031
DIFF: https://github.com/llvm/llvm-project/commit/1864976c967de36146eb5a5b86e6312d466e1031.diff
LOG: [Sanitizer] Add Windows header for _mkdir
This will hopefully fix the sanitizer_windows bot failure after D109794:
https://lab.llvm.org/buildbot/#/builders/127/builds/17222
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
index 491b84f943df4..811aa497d97dc 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
@@ -16,6 +16,7 @@
#define WIN32_LEAN_AND_MEAN
#define NOGDI
+#include <direct.h>
#include <windows.h>
#include <io.h>
#include <psapi.h>
More information about the llvm-commits
mailing list