From 8b59cb1fe8f38ed4e453f0bf3e35b7af793a6a1f Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Wed, 19 Feb 2025 09:36:21 +0100
Subject: [PATCH] Fixed ffi.h for OSX on arm64

---
 source/texk/web2c/luatexdir/ChangeLog           | 5 +++++
 source/texk/web2c/luatexdir/luaffi/ffi.h        | 2 +-
 source/texk/web2c/luatexdir/luatex_svnversion.h | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/source/texk/web2c/luatexdir/ChangeLog b/source/texk/web2c/luatexdir/ChangeLog
index 1b5febbaf..a5974891b 100644
--- a/source/texk/web2c/luatexdir/ChangeLog
+++ b/source/texk/web2c/luatexdir/ChangeLog
@@ -1,6 +1,11 @@
+2025-02-19 Luigi Scarso <luigi.scarso@gmail.com>
+	* Fixed ffi.h for OSX on arm64
+
+	
 2025-02-10 Luigi Scarso <luigi.scarso@gmail.com>
 	* Updated \tracinglostchars. 4: early warning (and force terminal); >4: early error.
 
+	
 2025-02-09 Luigi Scarso <luigi.scarso@gmail.com>
 	* fixed shell-escape bypass (thanks to tex@maxchernoff.ca)
 	* Add token.unchecked_put_next, support setting the environment
diff --git a/source/texk/web2c/luatexdir/luaffi/ffi.h b/source/texk/web2c/luatexdir/luaffi/ffi.h
index 9588dac52..f0c4f531e 100644
--- a/source/texk/web2c/luatexdir/luaffi/ffi.h
+++ b/source/texk/web2c/luatexdir/luaffi/ffi.h
@@ -125,7 +125,7 @@ struct jit;
 
 /* See ffi.c: replace luaopen_ffi with a stub    */
 /* if FFI_ENABLE_LUATEX_INTERFACE is not defined */
-#if (defined ARCH_X86 || defined ARCH_X64) && (defined OS_CE || defined OS_WIN || defined OS_LINUX || defined OS_BSD || defined OS_POSIX || defined OS_OSX) || ( defined ARCH_ARM64 && (defined OS_LINUX ||defined OS_POSIX ))
+#if (defined ARCH_X86 || defined ARCH_X64) && (defined OS_CE || defined OS_WIN || defined OS_LINUX || defined OS_BSD || defined OS_POSIX || defined OS_OSX) || ( defined ARCH_ARM64 && (defined OS_LINUX ||defined OS_POSIX || defined OS_OSX))
 #define FFI_ENABLE_LUATEX_INTERFACE
 #endif 
 /* for the moment */
diff --git a/source/texk/web2c/luatexdir/luatex_svnversion.h b/source/texk/web2c/luatexdir/luatex_svnversion.h
index aa0cf030b..9ebadf1b1 100644
--- a/source/texk/web2c/luatexdir/luatex_svnversion.h
+++ b/source/texk/web2c/luatexdir/luatex_svnversion.h
@@ -1,4 +1,4 @@
 #ifndef luatex_svn_revision_h
 #define luatex_svn_revision_h
-#define luatex_svn_revision 7666
+#define luatex_svn_revision 7667
 #endif
-- 
GitLab