diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2022-01-17 08:33:17 +0100 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2022-01-17 08:35:13 +0100 |
commit | edb56d4c62ae865be24e1fb81c7657d42a27c355 (patch) | |
tree | 1f84e5b960edfc857dce27a9d27a56ff6b3f595d /databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc | |
parent | graphics/qgis: Update to 3.22.3 (diff) |
databases/clickhouse: Update to 21.12.3.32
Changes: https://github.com/ClickHouse/ClickHouse/compare/v21.7.4.18-stable...v21.12.3.32-stable
Reported by: maintainer
Diffstat (limited to 'databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc')
-rw-r--r-- | databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc b/databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc deleted file mode 100644 index 1b37e82527ef..000000000000 --- a/databases/clickhouse/files/patch-contrib_rocksdb_util_crc32c__arm64.cc +++ /dev/null @@ -1,45 +0,0 @@ ---- contrib/rocksdb/util/crc32c_arm64.cc.orig 2021-05-13 00:21:57.000000000 +0200 -+++ contrib/rocksdb/util/crc32c_arm64.cc 2000-01-01 02:32:56.500264000 +0100 -@@ -5,9 +5,11 @@ - - #include "util/crc32c_arm64.h" - --#if defined(__linux__) && defined(HAVE_ARM64_CRC) -+#if (defined(__FreeBSD__) || defined(__linux__)) && defined(HAVE_ARM64_CRC) - -+#if defined(__linux__) - #include <asm/hwcap.h> -+#endif // linux - #ifdef ROCKSDB_AUXV_GETAUXVAL_PRESENT - #include <sys/auxv.h> - #endif -@@ -42,7 +44,14 @@ extern bool pmull_runtime_flag; - - uint32_t crc32c_runtime_check(void) { - #ifdef ROCKSDB_AUXV_GETAUXVAL_PRESENT -+#if defined(__FreeBSD__) -+ uint64_t auxv; -+ int result = elf_aux_info(AT_HWCAP, &auxv, sizeof auxv); -+ if (result != 0) -+ return 0; -+#else - uint64_t auxv = getauxval(AT_HWCAP); -+#endif - return (auxv & HWCAP_CRC32) != 0; - #else - return 0; -@@ -51,7 +60,14 @@ uint32_t crc32c_runtime_check(void) { - - bool crc32c_pmull_runtime_check(void) { - #ifdef ROCKSDB_AUXV_GETAUXVAL_PRESENT -+#if defined(__FreeBSD__) -+ uint64_t auxv; -+ int result = elf_aux_info(AT_HWCAP, &auxv, sizeof auxv); -+ if (result != 0) -+ return 0; -+#else - uint64_t auxv = getauxval(AT_HWCAP); -+#endif - return (auxv & HWCAP_PMULL) != 0; - #else - return false; |