From 3b130ade45c70af63c7692387b65f161770a8ccc Mon Sep 17 00:00:00 2001 From: David Michael Date: Mon, 25 Feb 2013 14:30:19 -0500 Subject: 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 Signed-off-by: Junio C Hamano --- git-compat-util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'git-compat-util.h') diff --git a/git-compat-util.h b/git-compat-util.h index 000042d79..503282c86 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -178,6 +178,17 @@ extern char *gitbasename(char *); #include #endif +/* On most systems 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 would have given us this, but * not on some systems (e.g. GNU/Hurd). */ -- cgit v1.2.1