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 | d554bbcefd3f541d85394fe0b92d4f0f2fa1429b (patch) | |
tree | 76519b6f597522c8ae387bf00c34c8733b9bb8fd /llvm/lib/System/Unix/Program.cpp | |
parent | af6d3d5c8f51bf8c8fa8bf8fa742c75b04844ffe (diff) | |
download | bcm5719-llvm-d554bbcefd3f541d85394fe0b92d4f0f2fa1429b.tar.gz bcm5719-llvm-d554bbcefd3f541d85394fe0b92d4f0f2fa1429b.zip |
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
llvm-svn: 19156
Diffstat (limited to 'llvm/lib/System/Unix/Program.cpp')
-rw-r--r-- | llvm/lib/System/Unix/Program.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Program.cpp b/llvm/lib/System/Unix/Program.cpp index 18cbc33d841..1bd3eae0f97 100644 --- a/llvm/lib/System/Unix/Program.cpp +++ b/llvm/lib/System/Unix/Program.cpp @@ -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; |