summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/lua-udev/files/patches/9999/newlib.patch')
-rw-r--r--dev-lua/lua-udev/files/patches/9999/newlib.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-lua/lua-udev/files/patches/9999/newlib.patch b/dev-lua/lua-udev/files/patches/9999/newlib.patch
new file mode 100644
index 0000000..0e3c7cf
--- /dev/null
+++ b/dev-lua/lua-udev/files/patches/9999/newlib.patch
@@ -0,0 +1,15 @@
+--- a/lua-udev.c 2018-09-25 18:34:57.043484722 +0700
++++ b/lua-udev.c 2018-09-25 18:38:32.437294642 +0700
+@@ -584,10 +584,9 @@ static luaL_Reg udev_methods[] = {
+
+ };
+
+-#if LUA_VERSION_NUM < 503
++#ifndef luaL_newlib
+ #define luaL_newlib(L, methods)\
+- lua_createtable(L, 0, sizeof(methods) / sizeof(luaL_Reg) - 1);\
++ lua_createtable(L, 0, sizeof(methods) / sizeof(luaL_Reg) - 1);
+- luaL_register(L, NULL, methods);
+ #endif
+
+ #define lua_pushcfunctionfield(field, method)\