diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-17 19:09:16 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-17 19:09:16 +0000 |
commit | 181cf4ce17a9c219c014e1170eb3af74e9ea9b51 (patch) | |
tree | 80a9627ee91784a2d8972a6a7bea1a294729ae5c /llvm/lib/ExecutionEngine/JIT/Intercept.cpp | |
parent | 227010bb31c2c285f739c528ef886dde474a0cf2 (diff) | |
download | bcm5719-llvm-181cf4ce17a9c219c014e1170eb3af74e9ea9b51.tar.gz bcm5719-llvm-181cf4ce17a9c219c014e1170eb3af74e9ea9b51.zip |
Move the #include of sys/stat.h inside the linux "hack" for the stat
family of functions so it gets noticed if we ever remove this.
llvm-svn: 19022
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Intercept.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp index 0877467ab59..c39263a2d68 100644 --- a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp @@ -18,9 +18,6 @@ #include "JIT.h" #include "llvm/System/DynamicLibrary.h" #include <iostream> -#if defined(__linux__) -#include <sys/stat.h> -#endif using namespace llvm; // AtExitHandlers - List of functions to call when the program exits, @@ -50,6 +47,7 @@ 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__) +#include <sys/stat.h> void *FunctionPointers[] = { (void *) stat, (void *) fstat, |