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>
Patrick Welche committed
Oct 18, 2007 at 18:17 UTC
415e7b877c54440bf92137a7021416efdf0a29b5
1 file changed
+4
daemon.c
+4
@@ -9,6 +9,10 @@
9
#define HOST_NAME_MAX 256
10
#endif
11
12
+#ifndef NI_MAXSERV
13
+#define NI_MAXSERV 32
14
+#endif
15
+
16
static int log_syslog;
17
static int verbose;
18
static int reuseaddr;