[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Intercept.cpp

Reid Spencer reid at x10sys.com
Sun Dec 19 22:34:13 PST 2004



Changes in directory llvm/lib/ExecutionEngine/JIT:

Intercept.cpp updated: 1.22 -> 1.23
---
Log message:

Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)".


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.22 llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.23
--- llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.22	Fri Dec 17 13:09:16 2004
+++ llvm/lib/ExecutionEngine/JIT/Intercept.cpp	Mon Dec 20 00:34:02 2004
@@ -17,6 +17,7 @@
 
 #include "JIT.h"
 #include "llvm/System/DynamicLibrary.h"
+#include "llvm/Config/config.h"
 #include <iostream>
 using namespace llvm;
 
@@ -47,7 +48,9 @@
 // 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__)
+#if defined(HAVE_SYS_STAT_H)
 #include <sys/stat.h>
+#endif 
 void *FunctionPointers[] = {
   (void *) stat,
   (void *) fstat,






More information about the llvm-commits mailing list