aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT/Intercept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index e4b9cc1767..ce93ab1867 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -47,16 +47,18 @@ static void runAtExitHandlers() {
// not inlined, and hiding their real definitions in a separate archive file
// 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__)
void *FunctionPointers[] = {
(void *) stat,
- (void *) stat64,
(void *) fstat,
- (void *) fstat64,
(void *) lstat,
+ (void *) stat64,
+ (void *) fstat64,
(void *) lstat64,
(void *) atexit,
(void *) mknod
};
+#endif // __linux__
// NoopFn - Used if we have nothing else to call...
static void NoopFn() {}