summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
Diffstat (limited to 'plop.c')
-rw-r--r--plop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plop.c b/plop.c
index 669ac1a..41449ab 100644
--- a/plop.c
+++ b/plop.c
@@ -1,5 +1,8 @@
#include <errno.h>
#include <fcntl.h>
+#include <lauxlib.h>
+#include <lua.h>
+#include <lualib.h>
#include <netdb.h>
#include <poll.h>
#include <stdlib.h>
@@ -134,6 +137,9 @@ int handle_server(struct pollfd * fdv, int fdc, const int size)
/// \return Error code
int main(int argc, char ** argv)
{
+ lua_State * L = luaL_newstate();
+ luaL_openlibs(L);
+
if (2 != argc)
{
return 4;