From d554bbcefd3f541d85394fe0b92d4f0f2fa1429b 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 llvm-svn: 19156 --- llvm/lib/System/Unix/MappedFile.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'llvm/lib/System/Unix/MappedFile.cpp') 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 +#endif + +#ifdef HAVE_SYS_MMAN_H #include +#endif + +#ifdef HAVE_SYS_STAT_H +#include +#endif namespace llvm { using namespace sys; -- cgit v1.2.3