parent
3ce9a1c635
commit
6607168687
2 changed files with 41 additions and 1 deletions
@ -0,0 +1,34 @@ |
||||
diff -up lualdap-1.1.0/src/lualdap.c.lua54 lualdap-1.1.0/src/lualdap.c
|
||||
--- lualdap-1.1.0/src/lualdap.c.lua54 2020-06-30 12:11:15.121638941 -0400
|
||||
+++ lualdap-1.1.0/src/lualdap.c 2020-06-30 12:10:53.802986642 -0400
|
||||
@@ -31,6 +31,18 @@
|
||||
#define luaL_getn(L,i) ((int)lua_objlen(L, i))
|
||||
#endif
|
||||
|
||||
+#ifndef luaL_openlib
|
||||
+#define luaL_openlib(L,n,l,nup) luaL_setfuncs((L),(l),(nup))
|
||||
+#endif
|
||||
+
|
||||
+#ifndef lua_objlen
|
||||
+#define lua_objlen lua_rawlen
|
||||
+#endif
|
||||
+
|
||||
+#ifndef lua_strlen
|
||||
+#define lua_strlen lua_rawlen
|
||||
+#endif
|
||||
+
|
||||
#ifdef WINLDAPAPI
|
||||
#define timeval l_timeval
|
||||
typedef ULONG ldap_int_t;
|
||||
diff -up lualdap-1.1.0/tests/test.lua.lua54 lualdap-1.1.0/tests/test.lua
|
||||
--- lualdap-1.1.0/tests/test.lua.lua54 2020-06-30 12:32:41.719651337 -0400
|
||||
+++ lualdap-1.1.0/tests/test.lua 2020-06-30 12:32:58.663374792 -0400
|
||||
@@ -387,7 +387,7 @@ BASE = arg[2]
|
||||
WHO = arg[3]
|
||||
PASSWORD = arg[4]
|
||||
|
||||
-require"lualdap"
|
||||
+lualdap = require "lualdap"
|
||||
assert (type(lualdap)=="table", "couldn't load LDAP library")
|
||||
|
||||
for i = 1, #tests do
|
Loading…
Reference in new issue