From b0d437ec3ce65347699733fd666f2adae975129f Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Tue, 14 Feb 2017 08:40:16 +0000
Subject: [PATCH] stub ffi for Mac OSX PPC

[[Split portion of a mixed commit.]]
---
 source/texk/web2c/luatexdir/luaffi/ffi.h | 2 +-
 source/texk/web2c/luatexdir/luatex.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/texk/web2c/luatexdir/luaffi/ffi.h b/source/texk/web2c/luatexdir/luaffi/ffi.h
index 75fe9c8a8..7c9242c7e 100644
--- a/source/texk/web2c/luatexdir/luaffi/ffi.h
+++ b/source/texk/web2c/luatexdir/luaffi/ffi.h
@@ -142,7 +142,7 @@ static void (lua_remove)(lua_State *L, int idx) {
 #elif defined __powerpc64__
 # define ARCH_PPC64
 #else
-# error
+# define UNSUPPORTED_ARCH
 #endif
 
 
diff --git a/source/texk/web2c/luatexdir/luatex.c b/source/texk/web2c/luatexdir/luatex.c
index 7e62b59b5..7933d17d6 100644
--- a/source/texk/web2c/luatexdir/luatex.c
+++ b/source/texk/web2c/luatexdir/luatex.c
@@ -198,7 +198,7 @@ void init_start_time(void) {
         if (source_date_epoch && source_date_epoch != '\0' ) {
             errno = 0;
             epoch = strtoull(source_date_epoch, &endptr, 10);
-            if (epoch < 0 || *endptr != '\0' || errno != 0) {
+            if (*endptr != '\0' || errno != 0) {
                 epoch = 0;
             }
 #if defined(_MSC_VER)
-- 
GitLab