git: 6080ce399372 - main - devel/folly: fix build on aarch64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 06:30:31 UTC
The branch main has been updated by fuz:

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

commit 6080ce399372414f8ec55c916997339683741a1a
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-09-24 18:24:48 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-25 06:29:20 +0000

    devel/folly: fix build on aarch64
    
     - ensure generic memset is not built on AArch64 FreeBSD, just like it
       is not on AArch64 Linux
     - test suite fails to build unfortunately
    
    Approved by:    portmgr (build fix blanket)
---
 devel/folly/files/patch-folly_FollyMemset.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/folly/files/patch-folly_FollyMemset.cpp b/devel/folly/files/patch-folly_FollyMemset.cpp
new file mode 100644
index 000000000000..b3f0c4325129
--- /dev/null
+++ b/devel/folly/files/patch-folly_FollyMemset.cpp
@@ -0,0 +1,11 @@
+--- folly/FollyMemset.cpp.orig	2024-09-24 17:45:52 UTC
++++ folly/FollyMemset.cpp
+@@ -16,7 +16,7 @@
+ 
+ #include <cstring>
+ 
+-#if !defined(__AVX2__) && !(defined(__linux__) && defined(__aarch64__))
++#if !defined(__AVX2__) && !((defined(__linux__) || defined(__FreeBSD__)) && defined(__aarch64__))
+ 
+ namespace folly {
+