From: Patrick Welche Date: Thu, 18 Oct 2007 17:17:39 +0000 (+0100) Subject: Define NI_MAXSERV if not defined by operating system X-Git-Tag: v1.5.3.5~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=415e7b877c54440bf92137a7021416efdf0a29b5;p=git.git 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 --- diff --git a/daemon.c b/daemon.c index 9cf22fef4..660e1552d 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;