Various minor updatesw for MacOS-X compatibility.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10481 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-07-15 09:08:27 +00:00
parent 8f4c4cdab9
commit 190d5bdee4
7 changed files with 103 additions and 18 deletions

View file

@ -578,6 +578,18 @@ int main(int argc, char *argv[], char *env[])
return _gnu_hostName;
}
- (int) processIdentifier
{
int pid;
#if defined(__MINGW__)
pid = (int)GetCurrentProcessId();
#else
pid = (int)getpid();
#endif
return pid;
}
- (NSString *) processName
{
return _gnu_processName;