From 49e9cd1d27836544047b1f9c3b5afcb61dcc6ec5 Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Thu, 16 Feb 2017 07:21:48 +0000
Subject: [PATCH] fixed a typo; enabled OSX

---
 source/texk/web2c/luatexdir/luaffi/ffi.c | 2 +-
 source/texk/web2c/luatexdir/luaffi/ffi.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/texk/web2c/luatexdir/luaffi/ffi.c b/source/texk/web2c/luatexdir/luaffi/ffi.c
index 5bfdae261..78fa014b3 100644
--- a/source/texk/web2c/luatexdir/luaffi/ffi.c
+++ b/source/texk/web2c/luatexdir/luaffi/ffi.c
@@ -3567,7 +3567,7 @@ int luaopen_ffi(lua_State *L)
 "The ffi module is available for:\n"
 "\n" 
 "    archictures       : ARCH_X86 and ARCH_X64,\n"
-"    operating systems : OS_CE, OS_WIN, OS_LINUX, OS BD and OS_POSIX\n"
+"    operating systems : OS_CE, OS_WIN, OS_LINUX, OS_BSD and OS_POSIX\n"
 "\n"
 "The ARM processor is currently not supported. There are subtle\n"
 "differences between this module and the one in luajitTeX \n"
diff --git a/source/texk/web2c/luatexdir/luaffi/ffi.h b/source/texk/web2c/luatexdir/luaffi/ffi.h
index 7c9242c7e..757d1a4d4 100644
--- a/source/texk/web2c/luatexdir/luaffi/ffi.h
+++ b/source/texk/web2c/luatexdir/luaffi/ffi.h
@@ -148,7 +148,7 @@ static void (lua_remove)(lua_State *L, int idx) {
 
 /* 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)
+#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)
 #define FFI_ENABLE_LUATEX_INTERFACE
 #endif 
 
-- 
GitLab