Commit 2d69590c authored by Ariadne Conill's avatar Ariadne Conill

llvm: improve musl compatibility undefs (closes github #1273)

parent 5bb9f904
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment