mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118232 d073be05-634f-4543-b044-5fe20cf6d1d6
27 lines
532 B
Diff
27 lines
532 B
Diff
--- luash.cpp.orig 2014-03-26 20:57:07.000000000 +0100
|
|
+++ luash.cpp 2014-03-26 20:59:16.000000000 +0100
|
|
@@ -18,6 +18,7 @@
|
|
#include <sstream>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
+#include <unistd.h>
|
|
#include <readline/readline.h>
|
|
#include <readline/history.h>
|
|
#include <lua.hpp>
|
|
@@ -200,7 +201,7 @@
|
|
|
|
while(true)
|
|
{
|
|
- L = lua_open();
|
|
+ L = luaL_newstate();
|
|
luaL_openlibs(L);
|
|
|
|
lua_register(L, "readline", lua_readline);
|
|
@@ -238,4 +239,4 @@
|
|
}
|
|
|
|
return 0;
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|