[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: patch: 5.1w3 compile fix when loadlib disabled.
- From: "Adam D. Moss" <adam@...>
- Date: Tue, 07 Dec 2004 16:25:45 +0000
Here's the patch -- see the subject: line...
Incidentally, it wasn't very easy to disable loadlib support
at all in 5.1w3.
The 'config' file's notes about setting LOADLIB to 0 or 1
won't seem to affect matters, since loadlib.c uses #ifdef
rather then #if to test this var (and others).
Regards,
--Adam
--
Adam D. Moss . ,,^^ adam@gimp.org http://www.foxbox.org/ co:3
--- loadlib.c.orig Tue Dec 7 16:19:27 2004
+++ loadlib.c Tue Dec 7 16:19:31 2004
@@ -176,7 +176,7 @@
#define freelib(lib) ((void)lib)
-static int loadlib(lua_State *L)
+static int loadlib(lua_State *L, const char *path, const char *init)
{
registerlib(L, NULL); /* to avoid warnings */
lua_pushnil(L);