зеркало из https://github.com/microsoft/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 <spearce@spearce.org>
This commit is contained in:
Родитель
fd0b9594d0
Коммит
415e7b877c
4
daemon.c
4
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче