mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Frith-MacDonald and other patches.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2801 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5ccc27038
commit
1996a609cc
7 changed files with 781 additions and 14 deletions
|
@ -46,7 +46,7 @@ NSUserName ()
|
|||
return [NSString stringWithCString: buf];
|
||||
else
|
||||
return [NSString stringWithCString: ""];
|
||||
#elif __SOLARIS__
|
||||
#elif __SOLARIS__ || defined(BSD)
|
||||
int uid = geteuid(); // get the effective user id
|
||||
struct passwd *pwent = getpwuid (uid);
|
||||
NSString* name = [NSString stringWithCString: pwent->pw_name];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue