[llvm-commits] [llvm] r137567 - in /llvm/trunk/lib/ExecutionEngine: JIT/Intercept.cpp MCJIT/Intercept.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Aug 13 17:34:04 PDT 2011
Author: chapuni
Date: Sat Aug 13 19:34:04 2011
New Revision: 137567
URL: http://llvm.org/viewvc/llvm-project?rev=137567&view=rev
Log:
EE: Provide the symbol "lseek64" explicitly with <unistd.h> on Linux glibc.
With libcxx, it seems <unistd.h> would not be provided. Thanks to Ryuta Suzuki.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
llvm/trunk/lib/ExecutionEngine/MCJIT/Intercept.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp?rev=137567&r1=137566&r2=137567&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp Sat Aug 13 19:34:04 2011
@@ -52,6 +52,7 @@
#include <sys/stat.h>
#endif
#include <fcntl.h>
+#include <unistd.h>
/* stat functions are redirecting to __xstat with a version number. On x86-64
* linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat'
* available as an exported symbol, so we have to add it explicitly.
Modified: llvm/trunk/lib/ExecutionEngine/MCJIT/Intercept.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/MCJIT/Intercept.cpp?rev=137567&r1=137566&r2=137567&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/MCJIT/Intercept.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/MCJIT/Intercept.cpp Sat Aug 13 19:34:04 2011
@@ -52,6 +52,7 @@
#include <sys/stat.h>
#endif
#include <fcntl.h>
+#include <unistd.h>
/* stat functions are redirecting to __xstat with a version number. On x86-64
* linking with libc_nonshared.a and -Wl,--export-dynamic doesn't make 'stat'
* available as an exported symbol, so we have to add it explicitly.
More information about the llvm-commits
mailing list