Source

gentoo-overlay / sys-devel / llvm / files / llvm-2.9-includes-for-llseek64.patch

Full commit
--- lib/ExecutionEngine/JIT/Intercept.cpp
+++ lib/ExecutionEngine/JIT/Intercept.cpp
@@ -52,6 +52,8 @@ static void runAtExitHandlers() {
 #include <sys/stat.h>
 #endif
 #include <fcntl.h>
+#include <sys/types.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.