daemon: opt-out on features that require posix
commita666b472c7d9e72bfacf4145405dbe8924ee153d
authorErik Faye-Lund <kusmabite@gmail.com>
Thu, 4 Nov 2010 01:35:24 +0000 (4 02:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Nov 2010 23:53:52 +0000 (4 16:53 -0700)
tree6b1bf5f321bf4f00206787a2ab9009f52de07b6c
parent9cddf56ef13c8575ac0c68d82e6196e5b0a2900d
daemon: opt-out on features that require posix

Windows does not supply the POSIX-functions fork(), setuuid(), setgid(),
setsid() and initgroups(). Error out if --user or --detach is specified
when if so.

MinGW doesn't have prototypes and headers for inet_ntop and inet_pton,
so include our implementation instead. MSVC does, so avoid doing so
there.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
daemon.c