Skip to content

Commit 8cfe9c0

Browse files
MehdiChinouneMeinersbur
authored andcommitted
[Flang] Fix compilation on MinGW-w64
Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D94707
1 parent a0c9ec1 commit 8cfe9c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flang/runtime/file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#include <cstring>
1515
#include <fcntl.h>
1616
#include <stdlib.h>
17+
#include <sys/stat.h>
1718
#ifdef _WIN32
1819
#define NOMINMAX
1920
#include <io.h>
2021
#include <windows.h>
2122
#else
22-
#include <sys/stat.h>
2323
#include <unistd.h>
2424
#endif
2525

flang/tools/flang-driver/driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ int main(int argc_, const char **argv_) {
131131
// information if possible.
132132
isCrash = CommandRes < 0;
133133
#ifdef _WIN32
134-
IsCrash |= CommandRes == 3;
134+
isCrash |= CommandRes == 3;
135135
#endif
136136
if (isCrash) {
137137
theDriver.generateCompilationDiagnostics(*c, *failingCommand);

0 commit comments

Comments
 (0)