summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/MappedFile.cpp2
-rw-r--r--llvm/lib/System/Unix/Unix.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/MappedFile.cpp b/llvm/lib/System/Unix/MappedFile.cpp
index 7682c23fda1..7e03cd15a81 100644
--- a/llvm/lib/System/Unix/MappedFile.cpp
+++ b/llvm/lib/System/Unix/MappedFile.cpp
@@ -18,7 +18,7 @@
#include "llvm/System/Process.h"
#include "Unix.h"
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/mman.h>
namespace llvm {
diff --git a/llvm/lib/System/Unix/Unix.h b/llvm/lib/System/Unix/Unix.h
index b9eff46c46f..37bc53c28a5 100644
--- a/llvm/lib/System/Unix/Unix.h
+++ b/llvm/lib/System/Unix/Unix.h
@@ -23,6 +23,7 @@
#include <cstring>
#include <cerrno>
#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/param.h>
#include <assert.h>
#include <string>
OpenPOWER on IntegriCloud