From 2837a4ff324f1f1b92f6f96791b5bad844135681 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 15 Aug 2021 13:34:57 +0200 Subject: Upgraded to Lua 5.4 --- Makefile | 4 ++-- plop.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0152973..b584fbc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CFLAGS+=-std=c11 -Wall -Wextra -Wpedantic -D_POSIX_C_SOURCE=200809L -CFLAGS+=-I/usr/include/lua5.3 -LDLIBS+=-llua5.3 +CFLAGS+=`pkg-config --cflags lua5.4` +LDLIBS+=`pkg-config --libs lua5.4` PREFIX?=/usr/local SHARE?=$(PREFIX)/share diff --git a/plop.c b/plop.c index 16cad9c..9b6d8f5 100644 --- a/plop.c +++ b/plop.c @@ -157,7 +157,8 @@ int plop_handle_client(lua_State * L, struct epoll_event * event) nargs = 1; } - int result = lua_resume(c->L, NULL, nargs); + int nresults = 0; + int result = lua_resume(c->L, NULL, nargs, &nresults); switch (result) { -- cgit v1.1