pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / lua-modules / luuid.patch
blob039d522be6d7fe15a72edf1b7d2f65365fe418c4
1 diff -Naur 5.2/uuid/luuid.c rock/uuid/luuid.c
2 --- 5.2/uuid/luuid.c 2012-05-10 11:22:00.000000000 +1000
3 +++ rock/uuid/luuid.c 2019-06-13 15:13:10.374134079 +1000
4 @@ -64,7 +64,11 @@
6 LUALIB_API int luaopen_uuid(lua_State *L)
8 - luaL_newlib(L,R);
9 + #if LUA_VERSION_NUM == 501
10 + luaL_register(L,MYNAME,R);
11 + #else
12 + luaL_newlib(L,R);
13 + #endif
14 lua_pushliteral(L,"version"); /** version */
15 lua_pushliteral(L,MYVERSION);
16 lua_settable(L,-3);