aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/Intercept.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-17 18:56:29 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-17 18:56:29 +0000
commit382343d78f693f1744972afd99de2c3eb4e0e4a9 (patch)
tree8174e6b73f843e3c7aa44afe7d96ff47f14acf5f /lib/ExecutionEngine/JIT/Intercept.cpp
parentfeeeb30c3274cc0920f0a2e26924ee8792a7be98 (diff)
Only #include sys/stat.h if we're on linux where we have the PR274 problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index 93d349ffa5..0877467ab5 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -18,7 +18,9 @@
#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,