]>
Commit | Line | Data |
---|---|---|
bdca9862 JR |
1 | diff -ur rpm-5.4.12/lua/linit.c rpm-5.4.12.lua/lua/linit.c |
2 | --- rpm-5.4.12/lua/linit.c 2013-07-29 12:55:10.414926615 +0200 | |
3 | +++ rpm-5.4.12.lua/lua/linit.c 2013-07-29 12:52:16.932990663 +0200 | |
4 | @@ -41,7 +41,7 @@ | |
5 | {LUA_DBLIBNAME, luaopen_debug}, | |
6 | {"rex_posix", luaopen_rex_posix}, | |
7 | {"rex_pcre", luaopen_rex_pcre}, | |
8 | - {"posix", luaopen_posix}, | |
9 | + {"posix", luaopen_posix_c}, | |
10 | {NULL, NULL} | |
11 | }; | |
12 | ||
13 | diff -ur rpm-5.4.12/lua/local/lposix.c rpm-5.4.12.lua/lua/local/lposix.c | |
14 | --- rpm-5.4.12/lua/local/lposix.c 2013-06-29 23:58:11.000000000 +0200 | |
15 | +++ rpm-5.4.12.lua/lua/local/lposix.c 2013-07-29 12:49:02.437509943 +0200 | |
16 | @@ -3934,6 +3934,10 @@ | |
17 | MENTRY( NFILE ); | |
18 | MENTRY( NOBUFS ); | |
19 | #if !defined(__APPLE__) | |
20 | +// sys/param.h defines NODEV as ((dev_t) -1) which confuses MENTRY macro | |
21 | +#ifdef NODEV | |
22 | +#undef NODEV | |
23 | +#endif | |
24 | MENTRY( NODEV ); | |
25 | #endif | |
26 | MENTRY( NOENT ); | |
27 | diff -ur rpm-5.4.12/lua/local/lposix.h rpm-5.4.12.lua/lua/local/lposix.h | |
28 | --- rpm-5.4.12/lua/local/lposix.h 2004-03-23 06:09:14.000000000 +0100 | |
29 | +++ rpm-5.4.12.lua/lua/local/lposix.h 2013-07-29 12:52:09.029570083 +0200 | |
30 | @@ -1,7 +1,9 @@ | |
31 | #ifndef LPOSIX_H | |
32 | #define LPOSIX_H | |
33 | ||
34 | -int luaopen_posix (lua_State *L) | |
35 | +#include <lua.h> | |
36 | + | |
37 | +int luaopen_posix_c (lua_State *L) | |
38 | /*@modifies L @*/; | |
39 | ||
40 | #endif |