From 2844923d62a4c408bd59ddb2caacca4aa7eb86bc Mon Sep 17 00:00:00 2001 From: Markus Duft Date: Wed, 27 Oct 2010 10:39:52 +0200 Subject: add support for the SUA layer (interix; windows) * add required build options to Makefile. * introduce new NO_INTTYPES_H for systems lacking inttypes; code includes stdint.h instead, if this is set. * introduce new NO_SYS_POLL_H for systems lacking sys/poll.h; code includes poll.h instead, if this is set. * introduce NO_INITGROUPS. initgroups() call is simply omitted. Signed-off-by: Markus Duft Signed-off-by: Junio C Hamano --- daemon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 7ccd097e1d..de59f5d139 100644 --- a/daemon.c +++ b/daemon.c @@ -15,6 +15,10 @@ #define NI_MAXSERV 32 #endif +#ifdef NO_INITGROUPS +#define initgroups(x, y) (0) /* nothing */ +#endif + static int log_syslog; static int verbose; static int reuseaddr; -- cgit v1.2.3