summaryrefslogtreecommitdiff
path: root/lang/lua52/patches/patch-src_lua.c
blob: fdf702dfdee453956ae570e5ab219e7c19e5ea8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-src_lua.c,v 1.2 2015/12/29 23:34:51 dholland Exp $

Disable Lua module version check under Cygwin.
XXX: This workaround should be investigated deeper.

--- 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);