summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)
{