aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/Intercept.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-17 19:09:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-17 19:09:16 +0000
commit6b4bd6b35cf169da85cc9cd4ba36c91691098b1a (patch)
treebeb135a8552aa43935d3306473bca60a53d205cd /lib/ExecutionEngine/JIT/Intercept.cpp
parent84c556e92a359d919b06450ac4f11cb7c0e1f616 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index 0877467ab5..c39263a2d6 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 <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,