diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:16:52 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:16:52 +0000 |
commit | cdf54d04c7623d8440356c7c0dd0b6413dc0dda4 (patch) | |
tree | 049be619b26c768f1d074410f119c80c7293118b /lib/System/Unix/Program.inc | |
parent | c33e4930d451268b4729bf84b9c500e4f4cf3c16 (diff) |
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/Program.inc')
-rw-r--r-- | lib/System/Unix/Program.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 18cbc33d84..1bd3eae0f9 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -18,13 +18,16 @@ #include <llvm/Config/config.h> #include "Unix.h" +#include <iostream> +#if HAVE_SYS_STAT_H #include <sys/stat.h> +#endif +#if HAVE_SIGNAL_H #include <signal.h> +#endif +#if HAVE_FCNTL_H #include <fcntl.h> -#ifdef HAVE_SYS_WAIT_H -#include <sys/wait.h> #endif -#include <iostream> extern char** environ; |