fix-compilation-error-on-ppc.patch 743 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
From 4d080589ada785636bf440e3e8afe9947671f406 Mon Sep 17 00:00:00 2001
From: Maniraj Deivendran <maniraj.deivendran@ibm.com>
Date: Tue, 1 Jun 2021 09:14:02 +0000
Subject: [PATCH] Change: Resolve compilation error in ppc

---
 src/lj_ccallback.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch-Source: https://github.com/openresty/luajit2/pull/124

diff --git a/src/lj_ccallback.c b/src/lj_ccallback.c
index 3dbf1e9c..568ab336 100644
--- a/src/lj_ccallback.c
+++ b/src/lj_ccallback.c
@@ -21,6 +21,10 @@
 #include "lj_trace.h"
 #include "lj_vm.h"
 
+#if LJ_ARCH_PPC_ELFV2
+#include "lualib.h"
+#endif
+
 /* -- Target-specific handling of callback slots -------------------------- */
 
 #define CALLBACK_MCODE_SIZE	(LJ_PAGESIZE * LJ_NUM_CBPAGE)