summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-08-14 00:34:04 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-08-14 00:34:04 +0000
commit45620380b5e131b375f16abfa26dc52c635dda0b (patch)
tree1861509162e891cd8e44e4ba0dc2d358d6e38c22 /llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp
parent0d45f58cbb9dc174fa64324a9389ccb02815f3cb (diff)
downloadbcm5719-llvm-45620380b5e131b375f16abfa26dc52c635dda0b.tar.gz
bcm5719-llvm-45620380b5e131b375f16abfa26dc52c635dda0b.zip
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. llvm-svn: 137567
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp b/llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp
index e431c848d63..f83f4282e01 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp
+++ b/llvm/lib/ExecutionEngine/MCJIT/Intercept.cpp
@@ -52,6 +52,7 @@ static void runAtExitHandlers() {
#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.
OpenPOWER on IntegriCloud