git: c090a37a3823 - main - www/py-autobahn: fix build on non-x86

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 11 Oct 2023 18:27:21 UTC
The branch main has been updated by pkubaj:

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

commit c090a37a3823c7acd07b71126886e9278a31f0f5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-10-11 08:24:54 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-10-11 18:26:43 +0000

    www/py-autobahn: fix build on non-x86
    
    /usr/lib/clang/16/include/ppc_wrappers/x86intrin.h:18:2: error: "Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this error."
---
 www/py-autobahn/files/patch-autobahn_nvx___utf8validator.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/www/py-autobahn/files/patch-autobahn_nvx___utf8validator.c b/www/py-autobahn/files/patch-autobahn_nvx___utf8validator.c
new file mode 100644
index 000000000000..2b129e91f737
--- /dev/null
+++ b/www/py-autobahn/files/patch-autobahn_nvx___utf8validator.c
@@ -0,0 +1,12 @@
+--- autobahn/nvx/_utf8validator.c.orig	2023-10-11 07:35:12 UTC
++++ autobahn/nvx/_utf8validator.c
+@@ -28,7 +28,9 @@
+ #include <stdint.h>
+ 
+ // http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
++#if defined(__amd64__) || defined(__i386__)
+ #include <x86intrin.h>
++#endif
+ 
+ 
+ #define UTF8_ACCEPT 0