Merge branch 'dm/ni-maxhost-may-be-missing' into maint-1.8.1
Some sources failed to compile on systems that lack NI_MAXHOST in their system header. * dm/ni-maxhost-may-be-missing: git-compat-util.h: Provide missing netdb.h definitionsmaint
commit
2b0dda5318
4
daemon.c
4
daemon.c
|
@ -9,10 +9,6 @@
|
||||||
#define HOST_NAME_MAX 256
|
#define HOST_NAME_MAX 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NI_MAXSERV
|
|
||||||
#define NI_MAXSERV 32
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NO_INITGROUPS
|
#ifdef NO_INITGROUPS
|
||||||
#define initgroups(x, y) (0) /* nothing */
|
#define initgroups(x, y) (0) /* nothing */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -209,6 +209,17 @@ extern char *gitbasename(char *);
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#endif
|
#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
|
/* On most systems <limits.h> would have given us this, but
|
||||||
* not on some systems (e.g. GNU/Hurd).
|
* not on some systems (e.g. GNU/Hurd).
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue