summaryrefslogtreecommitdiff
path: root/lang/lua52/patches/patch-src_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/lua52/patches/patch-src_lua.c')
-rw-r--r--lang/lua52/patches/patch-src_lua.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/lua52/patches/patch-src_lua.c b/lang/lua52/patches/patch-src_lua.c
new file mode 100644
index 00000000000..0f5178f694f
--- /dev/null
+++ b/lang/lua52/patches/patch-src_lua.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_lua.c,v 1.1 2015/03/05 13:39:20 ryoon Exp $
+
+--- src/lua.c.orig 2013-04-12 18:48:47.000000000 +0000
++++ src/lua.c
+@@ -453,7 +453,9 @@ static int pmain (lua_State *L) {
+ lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
+ }
+ /* open standard libraries */
++#if !defined(__CYGWIN__)
+ luaL_checkversion(L);
++#endif
+ lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */
+ luaL_openlibs(L); /* open libraries */
+ lua_gc(L, LUA_GCRESTART, 0);