summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorMarkus Duft <mduft@gentoo.org>2010-10-27 10:39:52 +0200
committerJunio C Hamano <gitster@pobox.com>2010-10-28 17:52:22 -0700
commit2844923d62a4c408bd59ddb2caacca4aa7eb86bc (patch)
tree984cbfe179ac14c8f59b62d05f5899c967a3a577 /daemon.c
parent7ebee44167fc25b975f5543472c851ab1840af1b (diff)
downloadgit-2844923d62a4c408bd59ddb2caacca4aa7eb86bc.tar.gz
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 <mduft@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 4 insertions, 0 deletions
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;