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 | 099557b6294802797f37d10fa7171815d85e7744 (patch) | |
tree | 1fcc3fd8fce647772af60cf94906f51bbf271635 | |
parent | 6e6e88a3f0fa8805de982eff665d8892a39571e7 (diff) | |
download | external_llvm-099557b6294802797f37d10fa7171815d85e7744.zip external_llvm-099557b6294802797f37d10fa7171815d85e7744.tar.gz external_llvm-099557b6294802797f37d10fa7171815d85e7744.tar.bz2 |
Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ExecutionEngine/JIT/Intercept.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index c39263a..3c30dbb 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/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, |