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:
Adam Fedor 1998-05-21 13:41:55 +00:00
parent c5ccc27038
commit 1996a609cc
7 changed files with 781 additions and 14 deletions

View file

@ -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];