summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-19 19:18:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-19 19:18:21 (GMT)
commit31ccd35df4b7599c83fe46669ca36ca2c4fb3caa (patch)
tree08e677175891dc5a7397ab78225dedf8ba4bbd33 /git-compat-util.h
parent3ae5d5016e71a206be1f79fe873a2016ed56d7d1 (diff)
parent3b130ade45c70af63c7692387b65f161770a8ccc (diff)
downloadgit-31ccd35df4b7599c83fe46669ca36ca2c4fb3caa.zip
git-31ccd35df4b7599c83fe46669ca36ca2c4fb3caa.tar.gz
git-31ccd35df4b7599c83fe46669ca36ca2c4fb3caa.tar.bz2
Merge branch 'dm/ni-maxhost-may-be-missing'
On systems without NI_MAXHOST in their system header files, connect.c (hence most of the transport) did not compile. * dm/ni-maxhost-may-be-missing: git-compat-util.h: Provide missing netdb.h definitions
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index b636e0d..e715285 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -213,6 +213,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).
*/