diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-20 06:34:02 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-20 06:34:02 +0000 |
| commit | cbd791c5e7b6f62df57391de259d86f45d82ecef (patch) | |
| tree | dd5139f0df9a9b28febef9391ff7bb873a5092c3 /llvm/lib/ExecutionEngine | |
| parent | db1fca91af614684fd39adc8f63d5c87a0719789 (diff) | |
| download | bcm5719-llvm-cbd791c5e7b6f62df57391de259d86f45d82ecef.tar.gz bcm5719-llvm-cbd791c5e7b6f62df57391de259d86f45d82ecef.zip | |
Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)".
llvm-svn: 19069
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Intercept.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp index c39263a2d68..3c30dbb1790 100644 --- a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp @@ -17,6 +17,7 @@ #include "JIT.h" #include "llvm/System/DynamicLibrary.h" +#include "llvm/Config/config.h" #include <iostream> using namespace llvm; @@ -47,7 +48,9 @@ static void runAtExitHandlers() { // that the dynamic linker can't see. For more info, search for // 'libc_nonshared.a' on Google, or read http://llvm.cs.uiuc.edu/PR274. #if defined(__linux__) +#if defined(HAVE_SYS_STAT_H) #include <sys/stat.h> +#endif void *FunctionPointers[] = { (void *) stat, (void *) fstat, |

