diff options
author | Patrick Welche <prlw1@newn.cam.ac.uk> | 2007-10-18 18:17:39 +0100 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-18 21:04:44 -0400 |
commit | 415e7b877c54440bf92137a7021416efdf0a29b5 (patch) | |
tree | 2700752a0b29d1d82817cc391fe42f99f3bca0d5 /daemon.c | |
parent | fd0b9594d0c2bb50469bfc1481ea4395b7a76548 (diff) | |
download | git-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |