summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-15 13:34:57 +0200
committerAki <please@ignore.pl>2021-08-15 13:34:57 +0200
commit2837a4ff324f1f1b92f6f96791b5bad844135681 (patch)
tree17a30d8ef1ece244138b00d90d5f28432b85bb7f
parent83458bc03c1527d637c1c2ec15e7a39aa05a62fd (diff)
downloadplop-2837a4ff324f1f1b92f6f96791b5bad844135681.zip
plop-2837a4ff324f1f1b92f6f96791b5bad844135681.tar.gz
plop-2837a4ff324f1f1b92f6f96791b5bad844135681.tar.bz2
Upgraded to Lua 5.4
-rw-r--r--Makefile4
-rw-r--r--plop.c3
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)
{