You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
751 B

  1. diff -Naur luaposix-release-v33.0.0.orig/ext/posix/unistd.c luaposix-release-v33.0.0/ext/posix/unistd.c
  2. --- luaposix-release-v33.0.0.orig/ext/posix/unistd.c 2014-11-04 17:49:35.000000000 +0200
  3. +++ luaposix-release-v33.0.0/ext/posix/unistd.c 2014-12-14 00:59:14.878622722 +0200
  4. @@ -526,6 +526,7 @@
  5. #endif
  6. +#ifndef NO_GETLOGIN
  7. /***
  8. Current logged-in user.
  9. @treturn[1] string username, if successful
  10. @@ -538,6 +539,7 @@
  11. checknargs(L, 0);
  12. return pushstringresult(getlogin());
  13. }
  14. +#endif
  15. /***
  16. @@ -1037,7 +1039,9 @@
  17. LPOSIX_FUNC( Pgetegid ),
  18. LPOSIX_FUNC( Pgeteuid ),
  19. LPOSIX_FUNC( Pgetgid ),
  20. +#ifndef NO_GETLOGIN
  21. LPOSIX_FUNC( Pgetlogin ),
  22. +#endif
  23. LPOSIX_FUNC( Pgetpgrp ),
  24. LPOSIX_FUNC( Pgetpid ),
  25. LPOSIX_FUNC( Pgetppid ),