summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/JIT
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
commit2ed7464c09d04d9a35f50f0981482878edc0065f (patch)
tree9df2a39a6201b0a1b185fc98ff0cced76ef33ce6 /lib/ExecutionEngine/JIT
parent5cbba0167165c61deb8f3223143643083013f046 (diff)
downloadllvm-2ed7464c09d04d9a35f50f0981482878edc0065f.tar.gz
llvm-2ed7464c09d04d9a35f50f0981482878edc0065f.tar.bz2
llvm-2ed7464c09d04d9a35f50f0981482878edc0065f.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp
index fa8bee4604..2251a8e6b0 100644
--- a/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/lib/ExecutionEngine/JIT/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.