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/Program.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/System/Unix/Program.cpp') diff --git a/lib/System/Unix/Program.cpp b/lib/System/Unix/Program.cpp index 18cbc33d84..1bd3eae0f9 100644 --- a/lib/System/Unix/Program.cpp +++ b/lib/System/Unix/Program.cpp @@ -18,13 +18,16 @@ #include #include "Unix.h" +#include +#if HAVE_SYS_STAT_H #include +#endif +#if HAVE_SIGNAL_H #include +#endif +#if HAVE_FCNTL_H #include -#ifdef HAVE_SYS_WAIT_H -#include #endif -#include extern char** environ; -- cgit v1.2.3-18-g5258