Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/celestia/files/celestia-lua-52-fix.patch
16462 views
1
--- celestia-1.6.1.orig/src/celestia/celx.cpp 2014-02-09 23:23:10.308810741 +0000
2
+++ celestia-1.6.1/src/celestia/celx.cpp 2014-02-09 23:24:57.627017784 +0000
3
@@ -272,9 +272,13 @@
4
const char* name,
5
lua_CFunction func)
6
{
7
+#if LUA_VER >= 0x050200
8
+ luaL_requiref(l, name, func, 1);
9
+#else
10
lua_pushcfunction(l, func);
11
lua_pushstring(l, name);
12
lua_call(l, 1, 0);
13
+#endif
14
}
15
#endif
16
17
18