[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
Reid Spencer
reid at x10sys.com
Fri Dec 17 11:09:27 PST 2004
Changes in directory llvm/lib/ExecutionEngine/JIT:
Intercept.cpp updated: 1.21 -> 1.22
---
Log message:
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.
---
Diffs of the changes: (+1 -3)
Index: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.21 llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.22
--- llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.21 Fri Dec 17 12:56:29 2004
+++ llvm/lib/ExecutionEngine/JIT/Intercept.cpp Fri Dec 17 13:09:16 2004
@@ -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 @@
// 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,
More information about the llvm-commits
mailing list