From 30d916546860d3d19f8d91a0ab4bc99f9c350aaa Mon Sep 17 00:00:00 2001 From: Stepan Neretin Date: Sat, 10 May 2025 16:37:13 +0700 Subject: [PATCH v4 2/6] Fix compilation on systems where is not available or inappropriate, such as older GCC versions or non-x86 platforms. --- src/include/storage/checksum_impl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/include/storage/checksum_impl.h b/src/include/storage/checksum_impl.h index 5ea1f698b57..042ee8af120 100644 --- a/src/include/storage/checksum_impl.h +++ b/src/include/storage/checksum_impl.h @@ -112,7 +112,9 @@ #include #endif +#ifdef HAVE_XSAVE_INTRINSICS #include +#endif #if defined(HAVE__CPUID) || defined(HAVE__CPUIDEX) #include @@ -253,10 +255,6 @@ pg_checksum_block_##ISANAME(const PGChecksummablePage *page) \ } /* Declarations are always defined to make dynamic dispatch code simpler */ - -PG_DECLARE_CHECKSUM_ISA(default); -PG_DECLARE_CHECKSUM_ISA(avx2); - PG_DEFINE_CHECKSUM_ISA(default); #ifdef USE_AVX2_WITH_RUNTIME_CHECK PG_DEFINE_CHECKSUM_ISA(avx2); -- 2.43.0