зеркало из https://github.com/microsoft/git.git
git-compat-util.h: Provide missing netdb.h definitions
Some platforms may lack the NI_MAXHOST and NI_MAXSERV values in their system headers, so ensure they are available. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
7e2010537e
Коммит
3b130ade45
4
daemon.c
4
daemon.c
|
@ -9,10 +9,6 @@
|
|||
#define HOST_NAME_MAX 256
|
||||
#endif
|
||||
|
||||
#ifndef NI_MAXSERV
|
||||
#define NI_MAXSERV 32
|
||||
#endif
|
||||
|
||||
#ifdef NO_INITGROUPS
|
||||
#define initgroups(x, y) (0) /* nothing */
|
||||
#endif
|
||||
|
|
|
@ -178,6 +178,17 @@ extern char *gitbasename(char *);
|
|||
#include <openssl/err.h>
|
||||
#endif
|
||||
|
||||
/* On most systems <netdb.h> would have given us this, but
|
||||
* not on some systems (e.g. z/OS).
|
||||
*/
|
||||
#ifndef NI_MAXHOST
|
||||
#define NI_MAXHOST 1025
|
||||
#endif
|
||||
|
||||
#ifndef NI_MAXSERV
|
||||
#define NI_MAXSERV 32
|
||||
#endif
|
||||
|
||||
/* On most systems <limits.h> would have given us this, but
|
||||
* not on some systems (e.g. GNU/Hurd).
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче