aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-04-24 04:45:23 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-04-24 04:45:23 +0000
commit2d69590c8463fa3ad1f6c0ea214dadc1bb3b0164 (patch)
tree08b0cf4b89abea9ead3b4dee9c1bcbb5dcf7345c
parent5bb9f9048ad7b73ebc1e696e473d393b6c74aacc (diff)
llvm: improve musl compatibility undefs (closes github #1273)
-rw-r--r--community/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch13
-rw-r--r--community/llvm3.9/llvm-fix-build-with-musl-libc.patch13
-rw-r--r--main/llvm4/llvm-fix-build-with-musl-libc.patch13
3 files changed, 36 insertions, 3 deletions
diff --git a/community/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch b/community/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch
index 1a690808663..6ee91ea44d9 100644
--- a/community/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch
+++ b/community/llvm3.7/llvm-0002-Fix-build-with-musl-libc.patch
@@ -14,7 +14,7 @@ diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/T
index 7becdf0..7f14427 100644
--- a/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/include/llvm/Analysis/TargetLibraryInfo.h
-@@ -18,6 +18,15 @@
+@@ -18,6 +18,26 @@
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
@@ -26,6 +26,17 @@ index 7becdf0..7f14427 100644
+#undef lstat64
+#undef stat64
+#undef tmpfile64
++#undef F_GETLK64
++#undef F_SETLK64
++#undef F_SETLKW64
++#undef flock64
++#undef open64
++#undef openat64
++#undef creat64
++#undef lockf64
++#undef posix_fadvise64
++#undef posix_fallocate64
++#undef off64_t
+
namespace llvm {
/// VecDesc - Describes a possible vectorization of a function.
diff --git a/community/llvm3.9/llvm-fix-build-with-musl-libc.patch b/community/llvm3.9/llvm-fix-build-with-musl-libc.patch
index 1a690808663..6ee91ea44d9 100644
--- a/community/llvm3.9/llvm-fix-build-with-musl-libc.patch
+++ b/community/llvm3.9/llvm-fix-build-with-musl-libc.patch
@@ -14,7 +14,7 @@ diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/T
index 7becdf0..7f14427 100644
--- a/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/include/llvm/Analysis/TargetLibraryInfo.h
-@@ -18,6 +18,15 @@
+@@ -18,6 +18,26 @@
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
@@ -26,6 +26,17 @@ index 7becdf0..7f14427 100644
+#undef lstat64
+#undef stat64
+#undef tmpfile64
++#undef F_GETLK64
++#undef F_SETLK64
++#undef F_SETLKW64
++#undef flock64
++#undef open64
++#undef openat64
++#undef creat64
++#undef lockf64
++#undef posix_fadvise64
++#undef posix_fallocate64
++#undef off64_t
+
namespace llvm {
/// VecDesc - Describes a possible vectorization of a function.
diff --git a/main/llvm4/llvm-fix-build-with-musl-libc.patch b/main/llvm4/llvm-fix-build-with-musl-libc.patch
index 1a690808663..6ee91ea44d9 100644
--- a/main/llvm4/llvm-fix-build-with-musl-libc.patch
+++ b/main/llvm4/llvm-fix-build-with-musl-libc.patch
@@ -14,7 +14,7 @@ diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/T
index 7becdf0..7f14427 100644
--- a/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/include/llvm/Analysis/TargetLibraryInfo.h
-@@ -18,6 +18,15 @@
+@@ -18,6 +18,26 @@
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
@@ -26,6 +26,17 @@ index 7becdf0..7f14427 100644
+#undef lstat64
+#undef stat64
+#undef tmpfile64
++#undef F_GETLK64
++#undef F_SETLK64
++#undef F_SETLKW64
++#undef flock64
++#undef open64
++#undef openat64
++#undef creat64
++#undef lockf64
++#undef posix_fadvise64
++#undef posix_fallocate64
++#undef off64_t
+
namespace llvm {
/// VecDesc - Describes a possible vectorization of a function.