liburcu: Update to 0.8.6
[feed/packages.git] / lang / luaposix / patches / 100-eglibc-compat.patch
1 --- a/ext/posix/posix.c
2 +++ b/ext/posix/posix.c
3 @@ -1970,6 +1970,7 @@ static int Pctermid(lua_State *L)
4 return 1;
5 }
6
7 +#ifndef NO_GETLOGIN
8 /***
9 Current logged-in user.
10 @see getlogin(3)
11 @@ -1980,6 +1981,7 @@ static int Pgetlogin(lua_State *L)
12 lua_pushstring(L, getlogin());
13 return 1;
14 }
15 +#endif
16
17 static void Fgetpasswd(lua_State *L, int i, const void *data)
18 {
19 @@ -3786,7 +3788,9 @@ static const luaL_Reg R[] =
20 #if _POSIX_VERSION >= 200112L
21 MENTRY( Pgetgroups ),
22 #endif
23 +#ifndef NO_GETLOGIN
24 MENTRY( Pgetlogin ),
25 +#endif
26 MENTRY( Pgetopt ),
27 MENTRY( Pgetpasswd ),
28 MENTRY( Pgetpid ),