1diff -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 @@
5
6 LUALIB_API int luaopen_uuid(lua_State *L)
7 {
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);