1 From 5c571082fdaf61f6df19d9b7137dc26d71334058 Mon Sep 17 00:00:00 2001
2 From: Natanael Copa <ncopa@alpinelinux.org>
3 Date: Thu, 18 Feb 2016 10:33:04 +0100
4 Subject: [PATCH 2/3] Fix build with musl libc
6 On musl libc the fopen64 and fopen are the same thing, but for
7 compatibility they have a `#define fopen64 fopen`. Same applies for
8 fseek64, fstat64, fstatvfs64, ftello64, lstat64, stat64 and tmpfile64.
10 include/llvm/Analysis/TargetLibraryInfo.h | 9 +++++++++
11 1 file changed, 9 insertions(+)
13 diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h
14 index 7becdf0..7f14427 100644
15 --- a/include/llvm/Analysis/TargetLibraryInfo.h
16 +++ b/include/llvm/Analysis/TargetLibraryInfo.h
18 #include "llvm/IR/Module.h"
19 #include "llvm/Pass.h"
31 /// VecDesc - Describes a possible vectorization of a function.
32 /// Function 'VectorFnName' is equivalent to 'ScalarFnName' vectorized