lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

100-eglibc-compat.patch (699B)


      1 diff --git a/ext/posix/unistd.c b/ext/posix/unistd.c
      2 index 9276640..69c8cef 100644
      3 --- a/ext/posix/unistd.c
      4 +++ b/ext/posix/unistd.c
      5 @@ -525,6 +525,7 @@ Pgetgroups(lua_State *L)
      6  #endif
      7  
      8  
      9 +#ifndef NO_GETLOGIN
     10  /***
     11  Current logged-in user.
     12  @treturn[1] string username, if successful
     13 @@ -537,6 +538,7 @@ Pgetlogin(lua_State *L)
     14  	checknargs(L, 0);
     15  	return pushstringresult(getlogin());
     16  }
     17 +#endif
     18  
     19  
     20  /***
     21 @@ -1044,7 +1046,9 @@ static const luaL_Reg posix_unistd_fns[] =
     22  	LPOSIX_FUNC( Pgetegid		),
     23  	LPOSIX_FUNC( Pgeteuid		),
     24  	LPOSIX_FUNC( Pgetgid		),
     25 +#ifndef NO_GETLOGIN
     26  	LPOSIX_FUNC( Pgetlogin		),
     27 +#endif
     28  	LPOSIX_FUNC( Pgetpgrp		),
     29  	LPOSIX_FUNC( Pgetpid		),
     30  	LPOSIX_FUNC( Pgetppid		),