aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix/MappedFile.inc
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
commitcdf54d04c7623d8440356c7c0dd0b6413dc0dda4 (patch)
tree049be619b26c768f1d074410f119c80c7293118b /lib/System/Unix/MappedFile.inc
parentc33e4930d451268b4729bf84b9c500e4f4cf3c16 (diff)
downloadexternal_llvm-cdf54d04c7623d8440356c7c0dd0b6413dc0dda4.zip
external_llvm-cdf54d04c7623d8440356c7c0dd0b6413dc0dda4.tar.gz
external_llvm-cdf54d04c7623d8440356c7c0dd0b6413dc0dda4.tar.bz2
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/MappedFile.inc')
-rw-r--r--lib/System/Unix/MappedFile.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/System/Unix/MappedFile.inc b/lib/System/Unix/MappedFile.inc
index 36a17e0..07683c1 100644
--- a/lib/System/Unix/MappedFile.inc
+++ b/lib/System/Unix/MappedFile.inc
@@ -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;