diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-14 00:34:04 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-14 00:34:04 +0000 |
commit | 2ed7464c09d04d9a35f50f0981482878edc0065f (patch) | |
tree | 9df2a39a6201b0a1b185fc98ff0cced76ef33ce6 /lib/ExecutionEngine | |
parent | 5cbba0167165c61deb8f3223143643083013f046 (diff) | |
download | external_llvm-2ed7464c09d04d9a35f50f0981482878edc0065f.zip external_llvm-2ed7464c09d04d9a35f50f0981482878edc0065f.tar.gz external_llvm-2ed7464c09d04d9a35f50f0981482878edc0065f.tar.bz2 |
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')
-rw-r--r-- | lib/ExecutionEngine/JIT/Intercept.cpp | 1 | ||||
-rw-r--r-- | lib/ExecutionEngine/MCJIT/Intercept.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index fa8bee4..2251a8e 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. diff --git a/lib/ExecutionEngine/MCJIT/Intercept.cpp b/lib/ExecutionEngine/MCJIT/Intercept.cpp index e431c84..f83f428 100644 --- a/lib/ExecutionEngine/MCJIT/Intercept.cpp +++ b/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. |