Annotation of pkgsrc/lang/lua52/patches/patch-src_lua.c, revision 1.2
1.2 ! dholland 1: $NetBSD: patch-src_lua.c,v 1.1 2015/03/05 13:39:20 ryoon Exp $
! 2:
! 3: Disable Lua module version check under Cygwin.
! 4: XXX: This workaround should be investigated deeper.
1.1 ryoon 5:
6: --- src/lua.c.orig 2013-04-12 18:48:47.000000000 +0000
7: +++ src/lua.c
8: @@ -453,7 +453,9 @@ static int pmain (lua_State *L) {
9: lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
10: }
11: /* open standard libraries */
12: +#if !defined(__CYGWIN__)
13: luaL_checkversion(L);
14: +#endif
15: lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */
16: luaL_openlibs(L); /* open libraries */
17: lua_gc(L, LUA_GCRESTART, 0);
CVSweb <webmaster@jp.NetBSD.org>