summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorPatrick Welche <prlw1@newn.cam.ac.uk>2007-10-18 18:17:39 +0100
committerShawn O. Pearce <spearce@spearce.org>2007-10-18 21:04:44 -0400
commit415e7b877c54440bf92137a7021416efdf0a29b5 (patch)
tree2700752a0b29d1d82817cc391fe42f99f3bca0d5 /daemon.c
parentfd0b9594d0c2bb50469bfc1481ea4395b7a76548 (diff)
downloadgit-415e7b877c54440bf92137a7021416efdf0a29b5.tar.gz
Define NI_MAXSERV if not defined by operating system
I found I needed NI_MAXSERV as it is defined in netdb.h, which is not included by daemon.c. Rather than including the whole header we can define a reasonable fallback value. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
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 9cf22fef41..660e1552d4 100644
--- a/daemon.c
+++ b/daemon.c
@@ -9,6 +9,10 @@
#define HOST_NAME_MAX 256
#endif
+#ifndef NI_MAXSERV
+#define NI_MAXSERV 32
+#endif
+
static int log_syslog;
static int verbose;
static int reuseaddr;