summaryrefslogtreecommitdiff
path: root/databases/tiledb/files
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-08-19 16:18:22 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-08-19 16:18:22 +0000
commit9641e17462a3287dc9595134bf42cf12d4d5fd3e (patch)
treea7fd59a69b1f8b18b2181afd951d3fc6512e69f0 /databases/tiledb/files
parentUpdate to 1.13.0 (diff)
Fix build with Clang 9+
Diffstat (limited to 'databases/tiledb/files')
-rw-r--r--databases/tiledb/files/patch-external-src-blosc-shuffle.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/databases/tiledb/files/patch-external-src-blosc-shuffle.cc b/databases/tiledb/files/patch-external-src-blosc-shuffle.cc
new file mode 100644
index 000000000000..c72dfceb3e97
--- /dev/null
+++ b/databases/tiledb/files/patch-external-src-blosc-shuffle.cc
@@ -0,0 +1,26 @@
+--- external/src/blosc/shuffle.cc.orig 2020-07-31 17:44:09 UTC
++++ external/src/blosc/shuffle.cc
+@@ -158,6 +158,8 @@ __cpuidex(int32_t cpuInfo[4], int32_t function_id, int
+ /* Reads the content of an extended control register.
+ https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family
+ */
++
++#if defined(__clang_major__) && __clang_major__ < 9
+ static inline uint64_t
+ _xgetbv(uint32_t xcr) {
+ uint32_t eax, edx;
+@@ -173,6 +175,7 @@ _xgetbv(uint32_t xcr) {
+ );
+ return ((uint64_t)edx << 32) | eax;
+ }
++#endif
+
+ #endif /* defined(_MSC_FULL_VER) */
+
+@@ -385,4 +388,4 @@ unshuffle(const size_t bytesoftype, const size_t block
+ (host_implementation.unshuffle)(bytesoftype, blocksize, _src, _dest);
+ }
+
+-}
+\ No newline at end of file
++}