summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/CommonProfiling.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/runtime/libprofile/CommonProfiling.c')
-rw-r--r--llvm/runtime/libprofile/CommonProfiling.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/runtime/libprofile/CommonProfiling.c b/llvm/runtime/libprofile/CommonProfiling.c
index 1c1771c3063..210a5e5ab78 100644
--- a/llvm/runtime/libprofile/CommonProfiling.c
+++ b/llvm/runtime/libprofile/CommonProfiling.c
@@ -19,7 +19,11 @@
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
+#if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h>
+#else
+#include <io.h>
+#endif
#include <stdlib.h>
static char *SavedArgs = 0;
OpenPOWER on IntegriCloud