diff --git a/databases/galera/Makefile b/databases/galera/Makefile index 43f65c8616d3..dfe4b8580b90 100644 --- a/databases/galera/Makefile +++ b/databases/galera/Makefile @@ -12,8 +12,6 @@ COMMENT= Synchronous multi-master replication engine LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_13= galerautils/src/gu_int128.h:163:20: error: use of undeclared identifier '__bswap64_var' -BROKEN_FreeBSD_14= galerautils/src/gu_int128.h:163:20: error: use of undeclared identifier '__bswap64_var' BROKEN_aarch64= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' BROKEN_armv6= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' BROKEN_armv7= fails to compile: gu_int128.h: use of undeclared identifier '__bswap64_var' diff --git a/databases/galera/files/patch-galerautils_src_gu__byteswap.h b/databases/galera/files/patch-galerautils_src_gu__byteswap.h new file mode 100644 index 000000000000..e91b329a6b22 --- /dev/null +++ b/databases/galera/files/patch-galerautils_src_gu__byteswap.h @@ -0,0 +1,14 @@ +--- galerautils/src/gu_byteswap.h.orig 2020-10-12 06:33:51 UTC ++++ galerautils/src/gu_byteswap.h +@@ -53,11 +53,6 @@ static GU_FORCE_INLINE uint64_t GU_ROTL64 (uint64_t x, + # define gu_bswap16 _OSSwapInt16 + # define gu_bswap32 _OSSwapInt32 + # define gu_bswap64 _OSSwapInt64 +-#elif defined(__FreeBSD__) +-/* do not use bswapXX, because gcc44 gives old-style cast warnings */ +-# define gu_bswap16 __bswap16_var +-# define gu_bswap32 __bswap32_var +-# define gu_bswap64 __bswap64_var + #elif defined(__sun__) + # define gu_bswap16 BSWAP_16 + # define gu_bswap32 BSWAP_32