Fix MINGW compile with getuid

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze_1_8_0@17604 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-09-02 02:46:49 +00:00
parent 9de39bc5a8
commit ee181f2e7e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-09-01 Adam Fedor <fedor@gnu.org>
* Tools/gdomap.c (main): Move getuid call inside #ifndef MINGW
like the others.
2003-08-31 Adam Fedor <fedor@gnu.org>
* Tools/gdnc.m (main): Close any open file descriptors so we can

View file

@ -4654,8 +4654,6 @@ printf(
setgid (gid);
setgroups (0, 0); /* Empty additional groups list */
}
#endif /* __MINGW__ */
if (getuid() == 0)
{
sprintf(ebuf, "Still running as root after trying to change");
@ -4663,6 +4661,8 @@ printf(
exit(EXIT_FAILURE);
}
#endif /* __MINGW__ */
init_probe(); /* Probe other name servers on net. */
if (debug)