From cdf54d04c7623d8440356c7c0dd0b6413dc0dda4 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 27 Dec 2004 06:16:52 +0000 Subject: 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 --- lib/System/Unix/MappedFile.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/System/Unix/MappedFile.cpp') diff --git a/lib/System/Unix/MappedFile.cpp b/lib/System/Unix/MappedFile.cpp index 36a17e0f2c..07683c1439 100644 --- a/lib/System/Unix/MappedFile.cpp +++ b/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 +#endif + +#ifdef HAVE_SYS_MMAN_H #include +#endif + +#ifdef HAVE_SYS_STAT_H +#include +#endif namespace llvm { using namespace sys; -- cgit v1.2.3-18-g5258