From 6b867ce28451cdb2b794961e42ed775741fe0b31 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 16 Apr 2017 18:31:09 +0200 Subject: main/llvm4: move from testing --- testing/llvm4/llvm-fix-build-with-musl-libc.patch | 35 ----------------------- 1 file changed, 35 deletions(-) delete mode 100644 testing/llvm4/llvm-fix-build-with-musl-libc.patch (limited to 'testing/llvm4/llvm-fix-build-with-musl-libc.patch') diff --git a/testing/llvm4/llvm-fix-build-with-musl-libc.patch b/testing/llvm4/llvm-fix-build-with-musl-libc.patch deleted file mode 100644 index 1a69080866..0000000000 --- a/testing/llvm4/llvm-fix-build-with-musl-libc.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 5c571082fdaf61f6df19d9b7137dc26d71334058 Mon Sep 17 00:00:00 2001 -From: Natanael Copa -Date: Thu, 18 Feb 2016 10:33:04 +0100 -Subject: [PATCH 2/3] Fix build with musl libc - -On musl libc the fopen64 and fopen are the same thing, but for -compatibility they have a `#define fopen64 fopen`. Same applies for -fseek64, fstat64, fstatvfs64, ftello64, lstat64, stat64 and tmpfile64. ---- - include/llvm/Analysis/TargetLibraryInfo.h | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h -index 7becdf0..7f14427 100644 ---- a/include/llvm/Analysis/TargetLibraryInfo.h -+++ b/include/llvm/Analysis/TargetLibraryInfo.h -@@ -18,6 +18,15 @@ - #include "llvm/IR/Module.h" - #include "llvm/Pass.h" - -+#undef fopen64 -+#undef fseeko64 -+#undef fstat64 -+#undef fstatvfs64 -+#undef ftello64 -+#undef lstat64 -+#undef stat64 -+#undef tmpfile64 -+ - namespace llvm { - /// VecDesc - Describes a possible vectorization of a function. - /// Function 'VectorFnName' is equivalent to 'ScalarFnName' vectorized --- -2.7.3 - -- cgit v1.2.3