summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/MappedFile.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-27 06:16:52 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-27 06:16:52 +0000
commitd554bbcefd3f541d85394fe0b92d4f0f2fa1429b (patch)
tree76519b6f597522c8ae387bf00c34c8733b9bb8fd /llvm/lib/System/Unix/MappedFile.cpp
parentaf6d3d5c8f51bf8c8fa8bf8fa742c75b04844ffe (diff)
downloadbcm5719-llvm-d554bbcefd3f541d85394fe0b92d4f0f2fa1429b.tar.gz
bcm5719-llvm-d554bbcefd3f541d85394fe0b92d4f0f2fa1429b.zip
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards llvm-svn: 19156
Diffstat (limited to 'llvm/lib/System/Unix/MappedFile.cpp')
-rw-r--r--llvm/lib/System/Unix/MappedFile.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/MappedFile.cpp b/llvm/lib/System/Unix/MappedFile.cpp
index 36a17e0f2c4..07683c14392 100644
--- a/llvm/lib/System/Unix/MappedFile.cpp
+++ b/llvm/lib/System/Unix/MappedFile.cpp
@@ -16,10 +16,20 @@
//=== is guaranteed to work on *all* UNIX variants.
//===----------------------------------------------------------------------===//
-#include "llvm/System/Process.h"
#include "Unix.h"
+#include "llvm/System/Process.h"
+
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
namespace llvm {
using namespace sys;
OpenPOWER on IntegriCloud