git: c677c1942140 - main - databases/mariadb114-server: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 16 Jun 2024 16:19:04 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c677c1942140a196a7ea8f9878f958fcc90a37f5

commit c677c1942140a196a7ea8f9878f958fcc90a37f5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-16 16:16:54 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-16 16:19:01 +0000

    databases/mariadb114-server: fix build on powerpc64*
    
    Same as previous mariadb fixes.
---
 databases/mariadb114-server/files/patch-mysys_crc32_crc32c.cc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/databases/mariadb114-server/files/patch-mysys_crc32_crc32c.cc b/databases/mariadb114-server/files/patch-mysys_crc32_crc32c.cc
new file mode 100644
index 000000000000..86261dbdc160
--- /dev/null
+++ b/databases/mariadb114-server/files/patch-mysys_crc32_crc32c.cc
@@ -0,0 +1,11 @@
+--- mysys/crc32/crc32c.cc.orig	2024-06-14 12:14:03 UTC
++++ mysys/crc32/crc32c.cc
+@@ -455,7 +455,7 @@ static int arch_ppc_probe(void) {
+ 
+   return arch_ppc_crc32;
+ }
+-# elif defined __FreeBSD_version && __FreeBSD_version >= 1200000
++# elif defined __FreeBSD__
+ #  include <machine/cpu.h>
+ #  include <sys/auxv.h>
+ #  include <sys/elf_common.h>