diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index 0877467ab59..c39263a2d68 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/lib/ExecutionEngine/JIT/Intercept.cpp @@ -18,9 +18,6 @@ #include "JIT.h" #include "llvm/System/DynamicLibrary.h" #include -#if defined(__linux__) -#include -#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 void *FunctionPointers[] = { (void *) stat, (void *) fstat,