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