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