From 8af58d344a4af1e5dd76f9d2842453b87f446ad1 Mon Sep 17 00:00:00 2001 From: Oleg Borodin Date: Thu, 29 Jul 2021 08:38:18 +0200 Subject: [PATCH] update pgsql go --- .../files/patch-src_include_storage_s__lock.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/postgresql13/files/patch-src_include_storage_s__lock.h diff --git a/data/postgresql13/files/patch-src_include_storage_s__lock.h b/data/postgresql13/files/patch-src_include_storage_s__lock.h new file mode 100644 index 00000000..19c945a3 --- /dev/null +++ b/data/postgresql13/files/patch-src_include_storage_s__lock.h @@ -0,0 +1,20 @@ +--- src/include/storage/s_lock.h.orig 2021-04-15 09:05:25 UTC ++++ src/include/storage/s_lock.h +@@ -320,7 +320,7 @@ tas(volatile slock_t *lock) + * We use the int-width variant of the builtin because it works on more chips + * than other widths. + */ +-#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) ++#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) || defined(__riscv) + #ifdef HAVE_GCC__SYNC_INT32_TAS + #define HAS_TEST_AND_SET + +@@ -337,7 +337,7 @@ tas(volatile slock_t *lock) + #define S_UNLOCK(lock) __sync_lock_release(lock) + + #endif /* HAVE_GCC__SYNC_INT32_TAS */ +-#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */ ++#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */ + + + /* S/390 and S/390x Linux (32- and 64-bit zSeries) */