diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | plop.c | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -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 @@ -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) { |