fix ifdefs for MINGW to avoid fork related code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37856 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-05-08 06:47:42 +00:00
parent 3b9ed6f6c1
commit 6f99460252
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2014-05-08 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gdomap.m: Fix ifdefs for MINGW to avoid fork relatred code.
2014-05-05 Ivan Vucica <ivan@vucica.net>
* GNUmakefile: gnustep-make's Master/deb.make now included.

View file

@ -4481,7 +4481,6 @@ main(int argc, char** argv)
const char *machine = 0;
const char *lookupf = 0;
int donamesf = 0;
int forked = 0;
#if defined(__MINGW__)
WORD wVersionRequested;
@ -4489,6 +4488,8 @@ main(int argc, char** argv)
wVersionRequested = MAKEWORD(2, 2);
WSAStartup(wVersionRequested, &wsaData);
#else
int forked = 0;
#endif
local_hostname = xgethostname();
@ -4913,8 +4914,6 @@ printf(
gdomap_log(LOG_DEBUG);
}
#endif /* !__MINGW__ */
if (forked)
{
is_daemon = 1;
@ -4928,6 +4927,8 @@ printf(
#endif
}
#endif /* !__MINGW__ */
init_my_port(); /* Determine port to listen on. */
init_ports(); /* Create ports to handle requests. */