EE: Provide the symbol "lseek64" explicitly with <unistd.h> on Linux glibc.
[oota-llvm.git] / lib / ExecutionEngine / JIT / Intercept.cpp
index fa8bee4604277987be2500e1fdd5e40470006a24..2251a8e6b077b611933b065fb3283534e6d00357 100644 (file)
@@ -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.